How do I style a new widget position in twentyeleven child theme
I’ve successfully followed the instructions in: http://codex.wordpress.org/Widgetizing_Themes
for creating a new widget position.
But now I want to style it and I’m completely baffled. The function that registers the new widget:
register_sidebar( array( 'name' => __( 'Home Nugget', 'twentyeleven' ), 'id' => 'home-nugget', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => "</aside>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
[Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Works, but of course it uses the standard widget styling, which I want to change. And if I change the aside class to anything else, the widget doesn’t display at all.
How do I create a unique class for this particular widget?
- The topic ‘How do I style a new widget position in twentyeleven child theme’ is closed to new replies.