How to have widgets on some PAGES and not on others? (5 posts)

  1. FreeHansje
    Posted 4 years ago #

    I am busy with creating a site based on TwentyEleven. The site has a view static pages and some blogs, which basically bring news and marketing text.
    What I want is the home-page free of widgets, but on other pages I like to show the widgets. I have DL/ed TwentyEleven Extensions plugin, which works great, but it sets widgets for all pages or none.
    My guess is I need to override the CSS for the home page, but allthough I am learning I am not yet very knowledgeable in how to get things done. Can´t find the home page for instance in my installation directory. It´s probably stored in the MySQL database.

    How to keep only the first or home page free of widgets?

    Hans Brouwer

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    You are using a child theme, aren't you?

  3. FreeHansje
    Posted 4 years ago #

    Yes I am, should have mentioned that.

  4. mukesh panchal
    Posted 4 years ago #

    add http://wordpress.org/extend/plugins/php-code-widget/
    plugin and put condition is_home()
    then it shows in home page only

  5. esmi
    Forum Moderator
    Posted 4 years ago #

    Try a custom sidebar.php file and change:

    if ( 'content' != $current_layout ) :


    if ( 'content' != $current_layout || is_front_page() ) :

Topic Closed

This topic has been closed to new replies.

About this Topic