• Resolved soulofadoption

    (@soulofadoption)


    I’m using this theme. I’ve already managed to decode the footer, etc. and make some major changes to the template (I like the layout, not the graphics, etc.) and customize most of it the way I want it.

    The issue is that I cannot seem to make my second sidebar (right side) dynamic. Part of the problem, I think, is that one of my sidebars is called from within the footer.

    I’m not sure which files you might need to see, so I’ll post functions, sidebar and footer – I can add any others as requested.

    My brain knows there’s a simple solution – and supposedly, this is a fully widget/dynamic enabled theme, but darn if I can figure out how to turn the non-dynamic, dynamic on this one.

    Any help would be appreciated.

    Function:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
        	'name' => 'Sidebar Left',
            'before_widget' => '',
            'after_widget' => '',
            'before_title' => '<h3>',
            'after_title' => '</h3>',
        ));
        register_sidebar(array(
        	'name' => 'Sidebar Right',
            'before_widget' => '',
            'after_widget' => '',
            'before_title' => '<h3>',
            'after_title' => '</h3>',
        ));
    ?>

    Sidebar:

    <!-- Sidebar -->
    		<div class="sidebar">
    
    			<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
    
    			<?php endif; ?>
    
    		</div>
    		<!-- Sidebar -->

    Footer:

    <!-- Sidebar -->
    
    		<div class="clear"></div>
    
    	</div></div></div>
    	<!-- /Main -->
    
    	<!-- Footer -->
    	<div id="footer">
    
    		<!-- Copyright -->
    		<div id="copyright">
    			<br />(c)Copyrighted LSS, All Rights Reserved.<br />
    
      </div>
    
    		<!-- /Copyright -->
    
    	</div>
    
    	<!-- Footer -->
    
    </div>
    <!-- /Page -->
    
    </body>
    
    </html>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Try

    Sidebar:

    <!-- Sidebar -->
    <div class="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Left') ) : ?>
    <?php endif; ?>
    </div>
    <!-- Sidebar -->

    Footer:

    <!-- Sidebar -->
    <div class="sidebar2">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar Right') ) : ?>
    <?php endif; ?>
    </div>
    <div class="clear"></div>

    Thread Starter soulofadoption

    (@soulofadoption)

    Hey esmi…

    Thank you for the help! That’s definitely made the sidebar dynamic, it’s grabbing the widgets I’ve assigned to it. Hooray! And reading the calls, I feel like a right idiot now, because that should have been obvious to me. LOL

    Off to fix the CSS so it all looks pretty. ??

    You’re awesome, thank you again!

    Thread Starter soulofadoption

    (@soulofadoption)

    Figured I should add, for any newbies who seeks out this topic in the future – in your CSS, you’ll need to add a second version of the information defining the styles (fonts, padding, etc.) for the sidebar. Quick, easy and dirty – just copy everything relating to the sidebar, paste it back in and rename each instance of “sidebar” to “sidebar2” (minus the “” symbols, of course).

    So you’ll have a section of definitions for “sidebar” AND a section of definitions for “sidebar2” (minus the “” symbols, of course).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue making 2nd sidebar dynamic’ is closed to new replies.