Forums

Remove Sidebar from Homepage [Page.php] Help! (3 posts)

  1. remotay
    Member
    Posted 3 years ago #

    I'm trying to remove the sidebar from my page.php file which is my homepage [Using the default about post with the page.php configured to not show any of the actual content on the about us default page]. No where in my page.php does it make a reference to include a sidebar, so how do I exclude it from the homepage? Or better yet. I exclude the sidebar all together and make it so my main page.php area just extends to the whole width of the page?

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Might use WinGrep and search your theme folder for get_sidebar() to see what template is displaying the sidebar.

    Resources:
    Stepping Into Templates
    Template Hierarchy
    Conditional Tags

  3. Shane G
    Member
    Posted 2 years ago #

    Hi,

    Open the page.php file of your theme and remove this code:

    < ? php get_sidebar(); ? >

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic