How do I target my Text Widgets with my CSS Stlye Sheet?
Basically, I have tons on sidebar widgets and all are styles the same. I recently added a text widget but for some reason my style sheet is not targeting that widget.
Any help?
How do I target my Text Widgets with my CSS Stlye Sheet?
Basically, I have tons on sidebar widgets and all are styles the same. I recently added a text widget but for some reason my style sheet is not targeting that widget.
Any help?
Giving us a link to your site would help the most.
<link href="file:///C|/Documents and Settings/Temp/My Documents/www.elio.ws/Website 2/blog/wp-content/themes/connections-reloaded-15/style.css" rel="stylesheet" type="text/css">
Why do you think a stylesheet on your own cmputer would have any effect on your website?
The above line is in your widget - the one that looks different than the others.
Check your source and see how the other widgets work - i.e. what is the output. Usually, it is a nested list. So, make this one a nested list, too. It should work.
Sorry, Ignore that...FIXED...I only include that so I can create the post in dreamweaver with the styles and then paste the code onto the dashboard...I must have forgotten to remove the attached styles sheet.
I am sorry but I am not the most advanced coder. I figured everything else out but for some reason I just cant find how to target this ONE widget?
EVERY widget has its own class or ID (sometimes both).
Reading your source code is always a good idea...
http://codex.wordpress.org/Finding_Your_CSS_Styles
EDIT. You can argue as long as you want - but putting the text widget content in between ul and li tags would solve your problem.
thank you....fixed
Hi there, if anyone cares, I was able to change my widgets code by changing the sidebar code on my theme. The widgets themselves did not have individual css.
This topic has been closed to new replies.