Support » Fixing WordPress » "Archives" and "Meta" widgets show up on "Search Results" pages

Viewing 5 replies - 1 through 5 (of 5 total)
  • You have 2 options.

    1. Stick an empty text widget in the Main Sidebar area and nothing will show.

    2. Create a child theme (http://codex.wordpress.org/Child_Themes) and then modify sidebar.php and remove the content between

    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

    and

    <?php endif; // end sidebar widget area ?>

    Thanks, JarretC.

    Is one option better than the other?

    #1 is much simpler if you don’t want to go through the process of creating a child theme.

    Although it is highly advised that you create a child theme should you want to modify any code or CSS so that your customizations don’t get overwritten with a theme update.

    JarretC
    I have just created a child theme folder for my Twenty Eleven theme. I won’t have a problem using a child theme, as long as I know exactly what to have in the child theme files.

    Thanks again, Jarret. I’ll go with the recommended Option 2.

    Jarret —

    Question 1: Will I ever have to undo the removal of code in the sidebar.php? If so, in what situations?

    Question 2: Are there any unwanted “side effects” of this code removal?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"Archives" and "Meta" widgets show up on "Search Results" pages’ is closed to new replies.