WordPress.org

Ready to get started?Download WordPress

Forums

How to remove sidebar from pages? (1 post)

  1. internetleadtech
    Member
    Posted 1 year ago #

    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 - http://codex.wordpress.org/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,

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags