• I’d like to move entry title and cat-links on top of each post in order to make the structure of each post (and post preview on main page) like this:

    – Category
    – Entry title
    – Thumbnail
    – Entry date, comments
    – Post text
    – Tags

    Currently Thumbnail is on top and then goes Category and entry title. You can see it in my test blog here: LINK

    I don’t know PHP (I’m only learning how to modify the look of my blog with CSS) and thus don’t know where to edit and what to edit. Please help. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Rozhdestvenskiy

    (@rozhdestvenskiy)

    Searched for “entry title”, but didn’t find anything useful. Searched for “post structure” and recently found this article:

    Stepping into templates

    I hope it will help me to modify content structure…

    Thread Starter Rozhdestvenskiy

    (@rozhdestvenskiy)

    I did it. After some reading here I went to my parent theme and found index.php. Though I didn’t clearly understand it’s structure I moved to content.php.

    1) Inside content.php I found some code and I thought that it should be related to thumbnails.
    2) I wrapped this code into HTML comment tag thus :

    <?php twentyfourteen_post_thumbnail(); ?>

    3) I uploaded that content.php to my FTP and after I refreshed my home page all thumbnails disappeared.
    4) Then I moved that code below and placed if right after this code:

    <?php
    			endif;
    
    			if ( is_single() ) :
    				the_title( '<h1 class="entry-title">', '</h1>' );
    			else :
    				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    			endif;
    		?>

    5) After uploading content.php and refreshing page all thumbnails moved below entry header and categories. Win!

    Now I’ll try to quickly make another easy change and replace “Leave a comment” with “Add a comment”. So far it’s fun!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to move entry title on top of every post?’ is closed to new replies.