.widget-wrapper.test {
background-color: blue;
}
<div class="widget-wrapper test">
<div class="widget-title-home"><h3><?php _e('Home Widget 1', 'responsive'); ?></h3></div>
<div class="textwidget"><?php _e('This is your first home widget box. To edit please go to Appearance > Widgets and choose 6th widget from the top in area six called Home Widget 1. Title is also managable from widgets as well.','responsive'); ?></div>
</div><!-- end of .widget-wrapper -->
<div id="recent-posts-4" class="widget-wrapper widget_recent_entries">
rasins wrote:Hi, can you please point me in the right direction of how to change the background colour on some of the widgets.
For example, I want the first widget on the homepage to be one colour (blue) and the four widgets underneath to be another colour (white).
I can see there is a class which all the widgets use called widget-wrapper and I figured I could just add an extension onto this, but it's not had an impact. When I view the source it doesn't even show the class 'test' that I have added.
Here is my code...
.widget-wrapper.test { background-color: blue; }<div class="widget-wrapper test"> <div class="widget-title-home"><h3><?php _e('Home Widget 1', 'responsive'); ?></h3></div> <div class="textwidget"><?php _e('This is your first home widget box. To edit please go to Appearance > Widgets and choose 6th widget from the top in area six called Home Widget 1. Title is also managable from widgets as well.','responsive'); ?></div> </div><!-- end of .widget-wrapper -->
Many Thanks in advance.

Emil wrote:Best way to do this is to use dev tools already installed in your browser, locate your styles and change them any way you need. http://themeid.com/forum/topic/697/browser-developer-tools/
The reason why I point you there is because Responsive widgets are using auto-generated WordPress classes and each widget will have different ID/Class depending on what kind of widgets you're using. Without "view-source" via browser tools it's virtually impossible for anyone to know what are they.
This applies only when changing the colors on each widget individually and also don't change anything to the actual Theme files, it's not needed, you can do this via CSS.
You will be looking for e.g.
<div id="recent-posts-4" class="widget-wrapper widget_recent_entries">
Hope that this makes sense,
Emil
rasins wrote:Hi, can you please point me in the right direction of how to change the background colour on some of the widgets.
For example, I want the first widget on the homepage to be one colour (blue) and the four widgets underneath to be another colour (white).
I can see there is a class which all the widgets use called widget-wrapper and I figured I could just add an extension onto this, but it's not had an impact. When I view the source it doesn't even show the class 'test' that I have added.
Here is my code...
.widget-wrapper.test { background-color: blue; }<div class="widget-wrapper test"> <div class="widget-title-home"><h3><?php _e('Home Widget 1', 'responsive'); ?></h3></div> <div class="textwidget"><?php _e('This is your first home widget box. To edit please go to Appearance > Widgets and choose 6th widget from the top in area six called Home Widget 1. Title is also managable from widgets as well.','responsive'); ?></div> </div><!-- end of .widget-wrapper -->
Many Thanks in advance.
.widget-wrapper {
border-color#your-color-here;
}
.home .widget-wrapper {
border-color#your-color-here;
}
sk wrote:I need help with changing border color of one of the 4 widgets on the page. Tried 'view-source' and got to know the div id and class. How do I use this to make changes in the CSS?The id/class details are: <div id="text-8" class="widget-wrapper widget_text"><div id="widget-title-three" class="widget-title-home"><h3> </h3></div> <div class="textwidget">Complete confidentiality assured.</div>
</div>.
Thanks
Sk
#widget-wrapper widget_text #text-2 {
background-image:url(/wp-content/uploads/2012/08/bg-trans.png);
display:block;
height:182px;
width:264px;
}
<div id="text-2"><a href="http://mysite.com"><span>MySite.com</span></a></div>
<div id="widgets" class="home-widgets">
<div class="grid col-300">
<div id="categoryposts-2" class="widget-wrapper widget_categoryposts"><div id="widget-title-one" class="widget-title-home"><h3>Switch it On</h3></div><ul>
<li class="cat-post-item">
#widget-title-one .widget-title-home .widget-wrapper {
background: #003366;
}
#categoryposts-2{
background: #003366;
}
background-color: transparent;
chruezoo wrote:Dear Emil
I have a text-widget with id=text2. Now i want to link a transparent background (which i added to sytle.css:
#widget-wrapper widget_text #text-2 { background-image:url(/wp-content/uploads/2012/08/bg-trans.png); display:block; height:182px; width:264px; }
As described here http://webdevnews.net/2007/01/css-trick-turning-a-background-image-into-a-clickable-link/
I'd like to add an url into the <div id=text-2>, somehow like this:<div id="text-2"><a href="http://mysite.com"><span>MySite.com</span></a></div>
My problem is that I can't find a <div id=text-2> in any .php file.
Do you have an idea how I can solve this?
Thank you for your help, very much appreciated.
Chris
It looks like you're new here. If you want to get involved, click one of these buttons!