WordPress.org

Ready to get started?Download WordPress

Forums

Fourth dynamic sidebar only showing in View Page Source (4 posts)

  1. cvilbrandt
    Member
    Posted 1 year ago #

    I'm starting a redesign of our site, and I didn't get very far before I ran into a roadblock. I created four dynamic sidebars in the PHP, and called them all in the index. When I load the index, only three show up. For some other people it's four, and for some other people it's three.

    Either way, the fourth sidebar shows up when you view the page source, but just not on the live site.

    I've cleared my cache numerous times, including with and without WP Super Cache going. I've disabled and deleted all the plugins, and it still didn't work. (I've re-enabled Comic Easel since.)

    Here's the site: http://dev.greyinkstudios.com

    And the functions.php call:

    // Register widgetized areas
    	add_action( 'init', 'theme_widgets_init' );
    	function theme_widgets_init() {
    	    // Area 1
    	    register_sidebar( array (
    	    'name' => 'Find Us',
    	    'id' => 'findus',
    	    'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
    	    'after_widget' => "</div>",
    	    'before_title' => '<h3 class="widget-title">',
    	    'after_title' => '</h3>',
    	  ) );
    
    	    // Area 2
    	    register_sidebar( array (
    	    'name' => 'Conventions',
    	    'id' => 'cons',
    	    'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
    	    'after_widget' => "</div>",
    	    'before_title' => '<h3 class="widget-title">',
    	    'after_title' => '</h3>',
    	  ) );
    
    		//Area 3
    		register_sidebar( array (
    	    'name' => 'Support WoBG',
    	    'id' => 'support',
    	    'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
    	    'after_widget' => "</div>",
    	    'before_title' => '<h3 class="widget-title">',
    	    'after_title' => '</h3>',
    	  ) );
    
    		 //Area 4
    		register_sidebar( array (
    	    'name' => 'Advertisement',
    	    'id' => 'ads',
    	    'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
    	    'after_widget' => "</div>",
    	    'before_title' => '<h3 class="widget-title">',
    	    'after_title' => '</h3>',
    	  ) );
    	  } // end theme_widgets_init

    And the code where I call it in the index (originally I had used the IDs to call them, but that caused only the first two sidebars to show, for some reason. So I switched to names.):

    <!-- #content -->
    
         <?php // get_sidebar(); ?>
        	<div id="sidebar-findus" class="sidebar">
    
        		<?php dynamic_sidebar( 'Find Us' ); ?>
    
        	</div>
    	<div id="sidebar-cons" class="sidebar">
    
    		<?php dynamic_sidebar( 'Conventions' ); ?>
    
    	</div>
    
    	<div id="sidebar-support" class="sidebar">
    
    		<?php dynamic_sidebar( 'Support WoBG' ); ?>
    
    	</div>
    
    	<div id="sidebar-ads" class="sidebar">
    
    		<?php dynamic_sidebar( 'Advertisement' ); ?>
    
    	</div>
    </div>

    I ran it through the W3 validator, and the only exceptions it threw up were for the Comic Easel plug-in, and they were for unparsed ampersands. But when I went digging into the code, they were in fact & so that wasn't the case.

    Either way, I disabled and even deleted the plug-in, and it still did the exact same thing. So I'm at a loss!

    Thanks in advance!

  2. cvilbrandt
    Member
    Posted 1 year ago #

    (oops, they were in fact &amp ; is what I meant to say.)

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    if the code is in the 'view source' view, and some people can see the fourth widget area, then it is likely to be a browser dependant css problem, for which you won't get much suggestions unless the problem is visible in the linked site.

  4. cvilbrandt
    Member
    Posted 1 year ago #

    Hmmm. I've tried it on multiple browsers, and I haven't touched the CSS away from what came with the blank template I got from here: http://lifehacker.com/5890139/how-to-create-a-custom-theme-for-your-wordpress-blog-with-minimal-coding-required

    So I'm not sure what CSS problem it might be. :|a Certainly haven't done anything with the custom sidebar IDs. Maybe I'll try messing with that and seeing if it shows up. I had been planning on waiting on that until I had the barebones showing up.

Topic Closed

This topic has been closed to new replies.

About this Topic