twentytwelve custom sidebars not showing even in page source
-
Hi Have added custom sidebars to custom templates, they show in admin but do not appear on the pages
have added to functon.php (adult theme)register_sidebar( array( 'name' => __( 'Members Sidebar', 'twentytwelve' ), 'id' => 'sidebar-members', 'description' => __( 'Appears on members pages', 'twentytwelve' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
side bar code
<?php /** * The sidebar containing the main widget area * * If no active widgets are in the sidebar, hide it completely. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ ?> <?php if ( is_active_sidebar( 'sidebar-members' ) ) : ?> <div id="sidebar" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-members' ); ?> </div><!-- .extra-sidebar .widget-area --> <?php endif; // end extra sidebar widget area ?>
template call code
<?php get_sidebar('sidebar-members'); ?>
the sidebars appear in admin/backdoor but not on the page, not ven in the source code
site – https://clivemabey.me.uk/Seals/members/
thankyou – can anyone help???
melanie
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘twentytwelve custom sidebars not showing even in page source’ is closed to new replies.