2 Sidebars (installing second)
-
My theme came with one Sidebar on the rightside and now I’m trying to install a second one on the leftside and I can’t get it to pull up.
index.php
<?php get_sidebar (1); ?>
sidebar-left.php
<?php if ( function_exists ( dynamic_sidebar(1) ) ) : ?> ... regular html ... <?php dynamic_sidebar (1); ?> ... regular html ... <?php endif; ?>
functions.php
if ( function_exists('register_sidebar') ) register_sidebars(2, array( 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', ));
===========================================
This is how it pulls up the RideSidebar:
index.php
<?php get_sidebar(); ?>
sidebar.php
---Bunch of Divs and HTML---- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <?php endif; ?>
- The topic ‘2 Sidebars (installing second)’ is closed to new replies.