Content Sidebar
-
A custom theme I’m updating has a language switcher widget in its ‘content sidebar’ added within WordPress’s ‘Appearance’ > ‘Widget’ settings.
This relates to the following ‘sidebar-content.php’ file included in the theme:
<?php /** * The Content Sidebar * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ if ( ! is_active_sidebar( 'sidebar-2' ) ) { return; } ?> <div id="content-sidebar" class="content-sidebar widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-2' ); ?> </div><!-- #content-sidebar -->However this only seems to get called on the homepage. How can I universally call this sidebar on all pages/posts?
The topic ‘Content Sidebar’ is closed to new replies.