Support » Fixing WordPress » Sidebar widget not showing up

  • Resolved Diamonique9

    (@diamonique9)


    I’m trying to add a 2nd sidebar. I followed all the instructions to install the widget and add it as a second sidebar. But when I save it, it doesn’t show on the web site.

    My theme is Twenty Thirteen.

    I’m pretty clueless about wordpress, but if there’s a file in there that I need to change, I can do that. I’m not a stranger to CSS and html.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    What do you mean second sidebar? The Twenty Thirteen theme registers two sidebars: primary and secondary.

    What instructions did you follow?

    I followed the instructions for the Image Widget.

    When the site was first created it had 2 sidebars. I got rid of one (the one that shows blog posts) because I got rid of the blog. Now I want to have a 2nd sidebar again with an image that links to another site. I filled in the 2nd sidebar info and saved it, but it’s not showing up.

    Do you have this in sidebar.php?

    <?php
    if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
    	<div id="tertiary" class="sidebar-container" role="complementary">
    		<div class="sidebar-inner">
    			<div class="widget-area">
    				<?php dynamic_sidebar( 'sidebar-2' ); ?>
    			</div><!-- .widget-area -->
    		</div><!-- .sidebar-inner -->
    	</div><!-- #tertiary -->
    <?php endif; ?>

    And this should be in your functions.php

    register_sidebar( array(
    		'name'          => __( 'Secondary Widget Area', 'twentythirteen' ),
    		'id'            => 'sidebar-2',
    		'description'   => __( 'Appears on right sidebar.', 'twentythirteen' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );

    Oh my. This is gonna take awhile to check, and I have a client coming in a few minutes. I’ll dig into it this afternoon and let you know. In any case, thanks for the assistance!

    Btw, I forgot to put my site url: http://www.myownhair.net

    befranga, I just wanted to get back to you and let you know that I’m still going to try your fix… hopefully tonight. My internet connection has been down since Saturday, and I just now got back online.

    Befranga, adding your code to the sidebar.php solved the problem!

    Thank you thank you thank you!

    Hai
    I am pretty new to wordpress. I am using Woocommerce Version 2.1.12, WooDoJo Version 1.5.4, WordPressSeo Version 1.5.4.2 and Wootigue free design. I have a menu called Shop but my widgets that I setup are not displying in the sidebar(primary)(incidently the shop menu has a sub-menu). On all my other menu’s like about, blogg home and contact the widgets is sidebar are displayed. Can any one assist with this?

    Hi its me again. Has anyone have a solution to my question?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Sidebar widget not showing up’ is closed to new replies.