WordPress.org

Support

Support » How-To and Troubleshooting » How To Display Sidebar Content On All Pages Except The Home Page

How To Display Sidebar Content On All Pages Except The Home Page

  • Does anyone know the exact code to use to display sidebar content on all parts of the blog except the home page?

    Thank you 🙂

    Btw, I tried the conditional tags page and I can’t quite seem to figure it out.

Viewing 1 replies (of 1 total)
  • blogsdna

    @blogsdna

    Yes you can do this with following code

    <?php if !is_home() :?>;
    get_sidebar(); -- or include(sidebar.php);
    <?php endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘How To Display Sidebar Content On All Pages Except The Home Page’ is closed to new replies.
Skip to toolbar