code in sidebar.php
-
Hi,
I like the plugin very much so far. The only thing i can’t figure out is how to replace my code in sidebar.php.
This is my Original code:<?php if ( is_active_sidebar( 'sidebar' ) && wpex_sidebar_enabled() == true ) : ?> <aside id="sidebar" class="sidebar-container sidebar-primary" role="complementary"> <?php dynamic_sidebar( 'sidebar' ); ?> </aside><!-- #sidebar --> <?php endif; ?>
I replaced this code with:
<?php global $MultipleSidebars; $MultipleSidebars -> dynamic_sidebar(); ?>
This shows the sidebars i created, but they are not sidebars anymore. The sidebars are located underneath the page content instead of on the right of the page.
Hope you can help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘code in sidebar.php’ is closed to new replies.