Forums

Side bar on specific pages (5 posts)

  1. Jon12345
    Member
    Posted 3 years ago #

    Can you have a front page without a sidebar but an internal page that does have the sidebars? Maybe if I do a static front page? Or does the sidebar have to be on every site page?

    Thanks,

    Jon

  2. lpe04
    Member
    Posted 3 years ago #

    Yes, on the index.php file of your theme take out the call for the sidebar <?php get_sidebar() ?> and save, then check that. I think that should help.

    Lance

  3. Grandslambert
    Member
    Posted 3 years ago #

    No, the side bar does not have to be on every page. The file in the theme folder called index.php will create the home page. If you want to remove the side bar from just the home page, open that file and look for this line:

    <?php get_sidebar(); ?>

    Change it to

    <?php \\ get_sidebar(); ?>

    or just remove it and no more sidebar on the home page. The space will still be there for it, so you may need to play with the CSS, but that is outside the scope of this forum.

    Or you could look for a theme without a side bar on the home page. See Holiday Road for an example wordpress site with no sidebar on the front page. That site uses a custom theme patterned after one called "Magadine".

  4. Jon12345
    Member
    Posted 3 years ago #

    That worked nicely thanks.

    What I am trying to do is have a static homepage and blog posts under an Articles page. But how can I do this if I want my homepage to look different to the other pages?

    If I go to Settings>Reading>Front page displays and set it to a static page, then I have the sidebar issue, since it will pick a page.php page which will contain the side bar, which I don't want on the homepage.

    Any ideas?

  5. Grandslambert
    Member
    Posted 3 years ago #

    That gets to be a bit of work, but can be done with plugins and I know there was a discussion going here about a plugin that will do that - check here:

    http://wordpress.org/support/topic/175921?replies=4

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.