I would like to show the same widget with different styles in different sidebar locations. For example:

if( is_dynamic_sidebar( 'sidebar-1' ) ) {
    // show this style
} elseif ( is_dynamic_sidebar( 'sidebar-2' ) ) {
    // show this style.

How can I achieve this?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.