• Resolved vgonzales11

    (@vgonzales11)


    I need the featured posts to appear BELOW the main page content on a static home page. What is the code needed to move the posts section and where do I move it to accomplish this?

    Please advise.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author lyrathemes

    (@lyrathemes)

    Thanks for trying out Kale, we appreciate it 🙂

    In order to make the change you need, you will need to modify the theme files a bit. Please make sure to create a child theme before you do. For a starter child theme, you can use this functions.php file to load all the necessary files: https://gist.github.com/lyrathemes/7f5c791b7351b7cadd7ab9faaba0b204

    Then, in your child theme, copy the parent theme header.php file and find these lines near the end:

    <?php if(is_front_page() && !is_paged() ) { 
    get_template_part('parts/frontpage', 'banner'); 
    get_template_part('parts/frontpage', 'featured'); 
    } ?>

    Change this to

    <?php if(is_front_page() && !is_paged() ) { 
    get_template_part('parts/frontpage', 'banner'); 
    } ?>

    Now copy footer.php from the parent to the child and find these lines, near the beginning of the file:

    <?php if(is_front_page() && !is_paged() ) { 
    get_template_part('parts/frontpage', 'large'); 
    } ?>

    Change them to:

    <?php if(is_front_page() && !is_paged() ) { 
    get_template_part('parts/frontpage', 'featured'); 
    get_template_part('parts/frontpage', 'large'); 
    } ?>

    That should work out for you. You’re basically moving the call get_template_part('parts/frontpage', 'featured'); from the header into the footer.

    Hope that helps.

    Thread Starter vgonzales11

    (@vgonzales11)

    Worked perfectly!! Looks very nice as well. =)

    THANK YOU SO MUCH!!

    Theme Author lyrathemes

    (@lyrathemes)

    You’re most welcome!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Move Featured Posts Below Page Content’ is closed to new replies.