I need some direction on how to have a sidebar based on meta rather than page

Create a sidebar $type . ‘_sidebar’ Register the sidebar $type . ‘_sidebar’ (e.g dog_sidebar) Pass the type as GET argument to the widget.php (create some menu entries or something else where you link to e.g. wp-admin/widgets.php?sidebar_type=dog_sidebar) Filter out every sidebar that should not be displayed. You can use this function: global $wp_registered_sidebars; $type =filter_input( INPUT_GET, … Read more

Disable Sidebar in the Product Page in Storefront Theme [closed]

for product page, you can put in functions.php function remove_storefront_sidebar() { if ( is_product() ) { remove_action( ‘storefront_sidebar’, ‘storefront_get_sidebar’, 10 ); } } add_action( ‘get_header’, ‘remove_storefront_sidebar’ ); It works with latest woocommerce 2.5.2 Also CSS is needed: .single-product.right-sidebar .content-area { float: none; margin-right: 0; width: 100%; }

Backend menu sidebar collapsed by default every time? [duplicate]

The following works with a regular site. I have’t worked with multisite yet, but I imagine it should be something along the same line: function change_user_settings() { set_user_setting(‘mfold’, ‘f’); //Missing “t” typo caused fatal error } add_action(‘admin_init’, ‘change_user_settings’);

dynamic_sidebar() returns false in admin section

Yes, you have to make sure to hook this function at some point after the sidebars are registered. It’s not quite explained, but implied in the codex that this function dynamic_sidebar( $index ) expects them to be registered and loaded as registered by the time it runs. Otherwise, it won’t have anything to match the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)