Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Different background color in every widget (http://forum.bytesforall.com/showthread.php?t=6114)

blueprairie Mar 2, 2010 01:20 PM

[SOLVED] Different background color in every widget
 
Is is possible to style each widget individually? I set widget styles on the "Style WIDGETS" page but want to remove the border from one widget and also have different background colors for every widget. Do I leave the Widget styling at default settings on the admin page and then enter custom CSS for each widget on the Add HTML/CSS inserts page?

juggledad Mar 3, 2010 07:30 AM

yes it is. You will have to look at teh generated source and find each of the widgets, but you will see something like this
HTML Code:

        <div id="tag_cloud-3" class="widget widget_tag_cloud"><div class="widget-title"><h3>Tags</h3></div><div></div>
</div>                <div id="recent-posts-3" class="widget widget_recent_entries">                <div class="widget-title"><h3>recent posts</h3></div>                <ul>
                                <li><a href="http://192.168.48.99/~paul/zenofmud/?p=74" title="block quote test">block quote test </a></li>
                                <li><a href="http://192.168.48.99/~paul/zenofmud/?p=72" title="a Map from Google">a Map from Google </a></li>
                                <li><a href="http://192.168.48.99/~paul/zenofmud/?p=29" title="new sticky">new sticky </a></li>
                                <li><a href="http://192.168.48.99/~paul/zenofmud/?p=27" title="Post with thumbnail and image">Post with thumbnail and image </a></li>
                                <li><a href="http://192.168.48.99/~paul/zenofmud/?p=26" title="Post with just image">Post with just image </a></li>
                                </ul>
                </div>

here there are two widgets and both have a unique ID ("tag_cloud-3" and "recent-posts-3")

ou can use this ID as part of the CSS Selector

blueprairie Mar 3, 2010 07:50 AM

Thanks juggledad! And thanks Flynn for a supreme theme! Have a great day!


All times are GMT -6. The time now is 04:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.