Support » Themes and Templates » how to de-widgetize the sidebar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • In your WP admin, remove all widgets from the sidebar. Done. Now it will revert to whatever is in the sidebar.php file.

    In sidebar.php, you’ll see something like this:

    <ul id="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
     <li id="about">
      <p>This is my blog.</p>
     <li id="links">
       <li><a href="">Example</a></li>
    <?php endif; ?>

    Everything between the if and the endif is what displays when you remove all widgets (using the admin menu). Put whatever you want between the if and endif and it will display when there aren’t widgets.

    Cathy Tibbles


    perfect! thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to de-widgetize the sidebar?’ is closed to new replies.