This topic is: not resolved
- This topic has 23 replies, 8 voices, and was last updated 8 years, 11 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Archived Forums › Design Tips and Tricks › Simple Sidebars: Styling Individual Sidebars
Tagged: CSS Simple Sidebars
Ok, thanks a lot:). I think I am "getting there" :D.
Did you get a response to this? I want to reduce the width of one of my simple sidebars but cannot target it.
Thanks
Kate
http://www.underbrella.co.uk
Learn from yesterday, live for today, hope for tomorrow
Hi,
sorry for the late response. Unfortunately, simple sidebars cannot be targeted with custom css. To quote precisely the answer O got from the developer "the ID is used only for registering sidebars and it does not add that ID to use to target the sidebar to use for styling with css". The only way I know is to target the specific pages/posts where the sidebar appears (as was written earlier in this thread). I have eventually done the custom styling through my child theme, that is Dynamik Website Builder, combining some of its options. Sorry I couldn't be more helpful.
Bump this suggestion. Simple Sidebars should ideally add a unique ID or class to the whole sidebar div.
In line 102 of the plugin it is registered missing a 'class' parameter.
//* Cycle through created sidebars, register them as widget areas
foreach ( (array) $_sidebars as $id => $info ) {
genesis_register_sidebar( array(
'name' => esc_html( $info['name'] ),
'id' => $id,
'description' => esc_html( $info['description'] ),
'editable' => 1,
) );
}
Not that it would help: according to the codex - Function Reference/register sidebar "This class will only appear in the source of the WordPress Widget admin page. It will not be included in the frontend of your website."
So I guess it could add a body class? eg. .ssidebar-my-sidebar-id
© 2024 WPEngine, Inc.