Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] How to change link color in custom header widget? (http://forum.bytesforall.com/showthread.php?t=4877)

JFG Dec 14, 2009 12:52 PM

[SOLVED] How to change link color in custom header widget?
 
Hi,

What code do I need to add to the css inserts box to change the link/link hover and visited links colors in my custom header widget? I've seen examples on the forum for sidebar widgets but I do not know what to replace in those examples to affect the header widget instead.

Maybe it's time I learn CSS :o

Thanks for any help...

juggledad Dec 14, 2009 03:58 PM

yup, you need to learn some CSS and how to look at the generated source of the page. When you add a new widget area to the header and add teh META widget in, you will get something like this
HTML Code:

<div id="my_new_widget_area" class="bfa_widget_area">
<div id="meta-5" class="widget widget_meta">
<div class="widget-title"><h3>xxxyyy</h3></div>                       
<ul>
<li><a href="http://yourdomain.com/wp-admin/">Site Admin</a></li>                       
<li><a href="http://yourdomain.com/wp-login.php?action=logout&amp;_wpnonce=915169cc32">Log out</a></li>
<li><a href="http://yourdomain.com/?feed=rss2" title="Syndicate this site using RSS 2.0">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
<li><a href="http://yourdomain.com/?feed=comments-rss2" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li>
</ul></div></div> <div class="horbar2">&nbsp;</div>

so by looking at this you can see that you can build your CSS Selector using
div#my_new_widget_area as the high level selector to narrow your CSS rules to this element.

Hope this helps. (p.s. I use 'Sams Teach Yourself CSS in 10 minutes' and lots of google searches)

JFG Dec 15, 2009 08:25 AM

Works like a charm, many thanks. My main problem, usually, is to identify the selectors I need to use. But I'll check out the book you've suggested!

Thanks again,

JFG


All times are GMT -6. The time now is 09:08 PM.

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