WordPress.org

Support

Support » Themes and Templates » Sidebar only on homepage

Sidebar only on homepage

  • Is it possible to only show the sidebar on the home page, and if so, how would I do this?

    I’ve tried to edit sidebar.php file with:

    First line:

    <?php if ( is_front_page() ) { ?>

    and the last line:
    <?php } ?>

    but it doesn’t work.

    Any ideas?

  • The topic ‘Sidebar only on homepage’ is closed to new replies.