Support » Themes and Templates » How to remove sidebar from pages?

  • Hello,

    Please anyone let me know how can I remove sidebar from all of my pages.

    I am using Figero theme here is code of sidebar.php

    [please use the ‘code’ button to mark posted code – ]

    <!--Start Sidebar wrapper-->
    <div class="grid_8 omega">
        <div class="sidebar">
            <?php if (!dynamic_sidebar('primary-widget-area')) : ?>
                    <?php _e('Categories', 'figero'); ?>
                    <?php wp_list_categories('title_li'); ?>
                    <?php _e('Archives', 'figero'); ?>
                    <?php wp_get_archives('type=monthly'); ?>
                <?php get_search_form(); ?>
            <?php endif; // end primary widget area ?>
            // A second sidebar for widgets, just because.
            if (is_active_sidebar('secondary-widget-area')) :
                <?php dynamic_sidebar('secondary-widget-area'); ?>
            <?php endif; ?>
    <!--End Sidebar wrapper-->

    If I delete this code sidebar disappear but the width of page remain small.
    Please, help.


  • The topic ‘How to remove sidebar from pages?’ is closed to new replies.