• Resolved Woodhill

    (@woodhill)


    I only want my sidebars to show on my home page. I am using the template NatureFox

    I copied the page template and renamed it homepage and then removed <?php get_sidebar(); ?> from the page template and added

    <?php
    /*
    Template Name: Home
    */
    ?>
    to the top.
    However, now the sidebar has been removed from all pages. How do I make sure the home page is using the homepage.php template?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Uh, how about editing the theme page.php file and single.php file and remove the call to sidebar.php?

    Thread Starter Woodhill

    (@woodhill)

    That works for posts… which is great. However, I would like to change the other static pages.

    Thread Starter Woodhill

    (@woodhill)

    Got it.
    There’s a drop down menu under Page Atributes on the right… once you create a new page template, you can change the page from “default” to the new template.

    Thank you for your advice.

    woodhill

    Just comment out all get_sidebar() function calls in the PHP files except for index.php like so:


    <?php /* get_sidebar(); */ ?>

    You shouldn’t have to create a page template for the home page. Just leave index.php alone.

    Thread Starter Woodhill

    (@woodhill)

    Thanks, the other way actually worked perfectly. I don’t see an index.php but I’ll keep that in mind next time.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar/Homepage issues’ is closed to new replies.