ThemeShaper Forums » Thematic

[closed]

move post meta above post title

(4 posts)
  • Started 2 years ago by craw
  • Latest reply from jon
  • This topic is not a support question

Tags:

  1. craw
    Member

    Just in case anyone was looking for something like this. Here's what you can put in your child theme's functions.php file if you want to move the post meta above the post title.

    Thanks for all the help from the awesome thematic staff!

    // Move meta above title in Post Header
    
    	function childtheme_override_postheader() {
    
     	   global $post;
    
     	   if ( is_404() || $post->post_type == 'page') {
     	       $postheader = thematic_postheader_postmeta();
     	   } else {
     	       $postheader = thematic_postheader_postmeta() . thematic_postheader_posttitle();
     	   }
    
     	   echo apply_filters( 'thematic_postheader', $postheader ); // Filter to override default post header
    	}
    Posted 2 years ago #
  2. jon
    Member

    after much trying various codes from around here, this is almost exactly what i was looking for ...
    only my php knowledge is very limited but i should really like to see the post meta go below the content right above the entry utility in its own div.
    i should appreciate help very much.

    Posted 2 years ago #
  3. override the thematic_postfooter (using childhteme_override_postfooter) and put thematic_postheader_postmeta() somewhere inside. do not make any changes in the content-extensions.php file, but i strongly encourage you to poke around in there and see what is happening. the "process" for making these types of changes is the same every time.

    Posted 2 years ago #
  4. jon
    Member

    thank you. you are pure gold :))

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.