Forums

Best WordPress Template Blog
You must be logged in to post Login Register


Lost Your Password?

How to change color of Tags

UserPost

2:38 pm
July 4, 2008


davisec52

Advance Member

posts 62

Mint Tree,

Hi. As I continue learning how to tweak the theme, I find I need to know how to change the color of the tags that show at the bottom of a post. Right now, the tags have the same color of hyperlinks in the body of the text in the main box. Is there any way to change just the color of the tags? What CSS code would I have to put in Other Settings?

Thank you--looking forward to your reply,

Evan

3:00 pm
July 4, 2008


Best WordPress Template

Admin

posts 77

Hi Evan,

If you look at the HTML source code, it's <div class="tag">, so the CSS for it would be:

.tag a:link {color:blue;}

.tag a:visited {color:purple;}

.tag a:hover {color:red;}

*Note: just change the color to whatever you want => a:link = the link, a:visited = visited link, a:hover = the link color when it's hovered over by the mouse.

<a href="#header">Top</a> Admin Mint Tree

4:44 pm
July 5, 2008


davisec52

Advance Member

posts 62

Mint Tree,

Hi. Thank you for your reply. For some reason the tags won't obey the code. I'm trying to change them to D2D2D2. The code I entered into Other Settings is this:

.tag a:link {color:#D2D2D2;}
.tag a:visited {color:#D2D2D2;}

I have also tried:

.tag a:link {color:D2D2D2;}
.tag a:visited {color:D2D2D2;}

and also:

.tag a:link {color:grey;}
.tag a:visited {color:grey;}

and:

.tag a:link {color:gray;}
.tag a:visited {color:gray;}

Any idea what the problem is?

Thanks,

Evan

6:28 pm
July 5, 2008


Best WordPress Template

Admin

posts 77

Hi Evan, that's pretty odd for me, as I've copied your code and tested it and the tag links WORK: they change color. So, I think it might be of your browser cache. Try to clear the cache/cookie and refresh the page to see if it change?

Regards,

~Mint Tree~

<a href="#header">Top</a> Admin Mint Tree

7:49 am
July 6, 2008


davisec52

Advance Member

posts 62

Best WordPress Template Forums said:

Hi Evan,

If you look at the HTML source code, it's <div class=”tag”>,


Mint Tree,

I've looked through the html source code and I don't have the code, <div class=”tag”>. I think that's probably causing the problem.

Where do I insert that piece of code so that it becomes part of the template? I've been looking through the files, but I don't know enough about the costruction of WP templates to see how to do it.

Thanks,

Evan

10:26 am
July 6, 2008


Best WordPress Template

Admin

posts 77

Hi Evan, if you look at the HTML source, it should be near every instance of "Related post on tag 1, tag2". The class in the <div > that wraps around that block of text/tag-links 'should' be <div class="tag">.

If not just change .tag a:link {color:blue;} to .something a:link {color:blue;}

Regards,

~Mint Tree~

P.S. Which BestWordPressTemplate version are we talking about here? From my previous 2 comments I'm talking about version 3.0x.

<a href="#header">Top</a> Admin Mint Tree

12:38 pm
July 6, 2008


davisec52

Advance Member

posts 62

Mint Tree,

Hi. The code, <div class="tag"> is simply not there, and the tags do respond to any change of CSS in the Other Settings. The tags are responding to the CSS for the link color defined by the main box: (.main-box a:link {color: #000080}).

I have this code for tags in Other Settings, but as I mentioned, the tags do not respond to this code:

.tag a:link {color:#D2D2D2;}
.tag a:visited {color:#D2D2D2;}

I don't know what version of BWT I'm using. It may be an earlier version. You have never sent me a download link for 3.0. You did, however, send me some code several months ago to add to the template. I don't recall now what it was or where I put it.

If there is a later version of BWT, please send me a link for the update along with instruction on how to do the update.

In the meantime, I'd appreciate help with changing the color of the tags.

Evan

6:03 pm
July 7, 2008


Best WordPress Template

Admin

posts 77

Hi Evan, I just checked all the version: it doesn't matter which version you have because the CSS is still <div class="tag">... So, you got me on this one (I think it might be because of your browser caching the old CSS style in Firefox: so you'll need to clear cache/cookie and see if the color change).

Also, to check which version you have (I think you have the latest version), go to the theme selection interface and the version info should be there on that page... (or you can view the source code and see what version it's => just "Find" the keyword "MintTree".

Anyway, let me know how it goes.

Regards,

~Mint Tree~

<a href="#header">Top</a> Admin Mint Tree

6:03 pm
July 7, 2008


Best WordPress Template

Admin

posts 77

Hi Evan, I just checked all the version: it doesn't matter which version you have because the CSS is still <div class="tag">... So, you got me on this one (I think it might be because of your browser caching the old CSS style in Firefox: so you'll need to clear cache/cookie and see if the color change).

Also, to check which version you have (I think you have the latest version), go to the theme selection interface and the version info should be there on that page... (or you can view the source code and see what version it's => just "Find" the keyword "MintTree".

Anyway, let me know how it goes.

Regards,

~Mint Tree~

<a href="#header">Top</a> Admin Mint Tree


About the Best WordPress Template Blog forum

Most Users Ever Online: 17

Currently Online:
5 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 49
Posts: 185

Membership:

There are 186 Members
There have been 5 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

davisec52 - 62
DeeH - 9
7digital - 8
lucky8 - 2
titanad - 2
smaxdot - 2

Recent New Members: chen123, photo recovery, jencruz8787, robcortez1787, lixiaoyu

Administrators: Best WordPress Template (77 Posts)

Moderators: Best WordPress Template (77 Posts)



HELP & SUPPORT QUESTIONS

Please post all the support or any other questions in the forums.

Thank you!

P.S. For other support, please use the Ticket Support system (I usually do not do email support).
Latest Comments
chen123: Activity is the only timberland boots uk road to knowledge .A free timberland boot man obtains knowledge...
haber: very nice, but my website was done with joomla :( thanks
data: looks like a great idea, i’m looking for a widget enabled footer-sidebar, but i dont understand, does it...
mas: is is for wordpress 2.6 ? and whereis the download link? Thanks
Fahd Murtaza: Can’t find the link to download.