• Hey everybody,

    I am using a child theme of Twenty eleven and was wondering if there is anyway to modify the regular POST “structure” showing on the home page to something like lifehack have.

    If you scroll a bit down on their website, you will see the structure they use to show their posts is a thumbnail on the left and title and text on the right.

    Thanks for any help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • create a file in your child them called content-index.php, then add this code.

    https://pastebin.com/qE7C4mG9

    That is almost it, as this is title over image and excerpt, so you will have to adjust to suit!

    HTH

    David

    Thread Starter Dmitri

    (@leanlegion)

    Thank you David for the code but I followed the instructions extacly and nothing seems to change. I am also a bit confused as to what I need to adjust.

    Thanks again for the help!

    Yes,
    I forgot they changed it in twenty eleven.

    Copy the file from the parent index.php and paste it into the child theme folder:
    Open the new file and find:
    <?php get_template_part( 'content', get_post_format() ); ?>
    Change to:
    <?php get_template_part( 'content', 'index' ); ?>

    Then you should have the layout, you have to assign the thumbnail in the editor screen as the featured image.

    Regards

    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modifying Home Page (Twenty Eleven) POST* "Structure "’ is closed to new replies.