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 – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code ]
<!--Start Sidebar wrapper--> <div class="grid_8 omega"> <div class="sidebar"> <?php if (!dynamic_sidebar('primary-widget-area')) : ?> <h3> <?php _e('Categories', 'figero'); ?> </h3> <ul> <?php wp_list_categories('title_li'); ?> </ul> <h3> <?php _e('Archives', 'figero'); ?> </h3> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> <h3>Search:</h3> <?php get_search_form(); ?> <?php endif; // end primary widget area ?> <?php // A second sidebar for widgets, just because. if (is_active_sidebar('secondary-widget-area')) : ?> <?php dynamic_sidebar('secondary-widget-area'); ?> <?php endif; ?> </div> </div> <!--End Sidebar wrapper-->
If I delete this code sidebar disappear but the width of page remain small.
Please, help.Thanks,
- The topic ‘How to remove sidebar from pages?’ is closed to new replies.