• I don’t want the widgets to be displayed in the sidebar.

    When I go into the customizer, the following three widgets are listed as inactive (what I want), but are still displayed: Search, Archives, Meta.

Viewing 2 replies - 1 through 2 (of 2 total)
  • the theme’s sidebar.php is progammed to display some codes which appears like widgets in the sidebar, when you do not use any actual widgets (under ‘appearance – widgets’).

    you would need to edit the theme to remove the codes, and to adjust the layout.

    Theme Author Falguni Desai

    (@falgunihdesai)

    Hello geekatrix,

    Michael has answered your question. The three widgets are displayed by default if you don’t choose to display your widgets. If you don’t want them at all then go to sidebar.php file and remove the below code:

    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
    
            <aside id="search" class="widget widget_search">
                <?php get_search_form(); ?>
            </aside>
    
            <aside id="archives" class="widget">
                <h3 class="widget-title"><?php _e( 'Archives', 'nisarg' ); ?></h3>
                <ul>
                    <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
                </ul>
            </aside>
    
            <aside id="meta" class="widget">
                <h3 class="widget-title"><?php _e( 'Meta', 'nisarg' ); ?></h3>
                <ul>
                    <?php wp_register(); ?>
                    <li><?php wp_loginout(); ?></li>
                    <?php wp_meta(); ?>
                </ul>
            </aside>
    
        <?php endif; // end sidebar widget area ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widgets are displayed although "inactive"’ is closed to new replies.