style individual widgets in the sidebar
-
Hello, I’m all new to wordpress and php and I’m currently exploring the minamaze-theme. If I want to style just one specific widget in the sidebar without affecting the other ones, how would i do?
It seems like all the sidebar-widgets have the same id/class/name.
<aside class="widget widget_text"><h3 class="widget-title">Hello</h3><div class="textwidget">random text 1 </div> </aside> <aside class="widget widget_text"><h3 class="widget-title">bla bla</h3><div class="textwidget">random text 2</div> </aside>
I was wondering if it has anything to do with the functions.php-file?
function thinkup_widgets_init() { register_sidebar( array( 'name' => 'Sidebar', 'id' => 'sidebar-1', 'before_widget' => '<aside class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
When I inspect the sidebar with Firebug or Chrome inspect-tool, I can’t seem to find any unique ID’s for the widgets. So how would I do to customize one and each individually? Any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘style individual widgets in the sidebar’ is closed to new replies.