Tag Info

New answers tagged

1

Widgets DO appear in the Customizer, but only if you are on the page that they are used on. For example, I have a sidebar for the Archive page. When I'm in the Customizer and on the homepage, that sidebar doesn't appear. But if I navigate to an archive page while in the Customizer, it then appears in the widget area.


0

You could try something like this, within your sidebar.php file: if ( ! is_active_sidebar ('SIDEBAR-NAME-OR-ID' ) ) { echo '<style>.main-content { width: 960px; }</style>'; } This is hackish, but it should work for what you're trying to do. There may be a better method but its hard to know without more context. The above code just spits ...


0

I think your idea is really nice here, but you have a couple of serious flaws in your code. Never use extract(), ever. It is extremely hard to debug and can render unexpected output. It has now been completely removed from core, except in one instance as far as I can pick up from this core trac ticket. The codex has also been updated to reflect this ...


0

Could you use the admin bar at the top instead? To me short messages look better up there. add_action( 'admin_bar_menu', 'toolbar_link_to_mypage', 999 ); function toolbar_link_to_mypage( $wp_admin_bar ) { $args = array( 'id' => 'my_admin_bar_text', 'title' => 'WELCOME TO SYDNEY', 'meta' => array( 'class' => ...


0

Did you create a CSS that includes both left and right side bars? /*---------------------------------------------------- 2 sidebars ---------------------------------------------------- */ #sidebar { Float:left; width:20%; display:block; } #sidebar-core { margin-right:20px; } #main { float: left; width: 65%; display: block; } ...



Top 50 recent answers are included