Tag Info

Hot answers tagged

1

Your issue is the dynamic sidebar being called is not matching the ID of what is registered. Matching: <?php if ( is_active_sidebar( 'sidebar-widgets' ) ) : ?> <div id="secondary" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-widgets' ); ?> </div><!-- #secondary --> ...


1

You have one big problem and then I would suggest a few suggestions on your code sidebar-widgets != sidebar-1 You register a sidebar with id sidebar-widgets but you are calling sidebar-1 You don't need to do this if (function_exists('register_sidebar')). register_sidebar is a core function, so it will always exist. It is not wrong, but it wastes space :-) ...



Only top voted, non community-wiki answers of a minimum length are eligible