WordPress.org

Ready to get started?Download WordPress

Forums

core sidebars plugin not working (2 posts)

  1. nvolkert
    Member
    Posted 2 years ago #

    I have downloaded the plugin Core Sidebars. http://wordpress.org/extend/plugins/core-sidebars/

    I have activated and added widget to pages.. however the sidebars are not showing up? Can someone please help me. Is there something I need to do in the code ? I am very new to understanding code.

    http://www.milkallergyguide.com/what-is-a-milk-allergy/

    thanks in advance

  2. nvolkert
    Member
    Posted 2 years ago #

    I've found information that says:
    Widget Support

    Widget support is enabled by default and you do not have to add any code. The only recommended change is that you go to your template's functions.php file and remove any coding containing a function similar to the one below.

    if ( function_exists('register_sidebar') )
        register_sidebar();

    HOwever: when I go into my functions.php I find the following code below and have NO IDEA what to delete. Can someone please help!

    * Register our sidebars and widgetized areas. Also register the default Epherma widget.
     *
     * @since Twenty Eleven 1.0
     */
    function twentyeleven_widgets_init() {
    
    	register_widget( 'Twenty_Eleven_Ephemera_Widget' );
    
    	register_sidebar( array(
    		'name' => __( 'Main Sidebar', 'twentyeleven' ),
    		'id' => 'sidebar-1',
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name' => __( 'Showcase Sidebar', 'twentyeleven' ),
    		'id' => 'sidebar-2',
    		'description' => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name' => __( 'Footer Area One', 'twentyeleven' ),
    		'id' => 'sidebar-3',
    		'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name' => __( 'Footer Area Two', 'twentyeleven' ),
    		'id' => 'sidebar-4',
    		'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name' => __( 'Footer Area Three', 'twentyeleven' ),
    		'id' => 'sidebar-5',
    		'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget' => "</aside>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    }

Topic Closed

This topic has been closed to new replies.

About this Topic