Support » Themes and Templates » Please please help! with post title position

  • Please help me!
    My tanzaku theme shows headers(titles) top of images both in the contents page and also in the main index page
    and I really want to place titles ‘below’ images.
    My website is
    Now I am just not putting titles but I don’t think this is a solution.
    Could you please help me?
    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator keesiemeijer


    First we need to delete the title out of the template files on which you dont want the title to show on top of the post. (index.php, page,php, etc. etc.) Look for something simular to this <h2><?php the_title(); ?></h2> and delete these lines.

    Put this in your theme’s functions.php:

    function my_post_title() {
    	Global $post;
    	return '<h2>' . $post->post_title . '</h2>';
    add_shortcode('title', 'my_post_title');

    Now in your post you can use the shortcode: [title] On any place you want. And the post title will show up there.

    OMG! Thank you so much!
    This is exactly what I wanted!
    Again thank you so much! You saved me! *^0^*

    Moderator keesiemeijer


    Glad it is working like you wanted! Now, please use the dropdown at top right to mark this topic ‘Resolved’.

    Oh, yes, now I changed it to resolved. Thanks again! ^___^

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please please help! with post title position’ is closed to new replies.