Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] how to make links change color after they have been visited? (http://forum.bytesforall.com/showthread.php?t=19653)

sixleggedinsect Feb 17, 2013 10:44 PM

[SOLVED] how to make links change color after they have been visited?
 
i have an unordered list of links on a page, and i would very much like the links to change to a different color after they have been visited.

i went into CSS files 'content.css' and edited it to read:

a:visited {color:#00FF00;}

however, it still doesn't work. is there anything else i should look for?

thanks!!

juggledad Feb 18, 2013 04:01 AM

Most likely, there is other CSS that applys to a link in an unordered list which overrides the 'general' CSS you changed. Try installing The FireBug extension in firefox and examine the link to see what CSS is being applied, then you'll be able to figure out what needsto be changed.

When asking for help, provide your URL

sixleggedinsect Feb 18, 2013 09:51 AM

thanks for replying!

the URL is http://www.electricant.net/ekg/cases/

i installed firebug, but in my inexperience am not able to interpret its data so as to know where to find the rogue CSS.

now that i changed the visited color to a dark blue, it *does* show that in some links, but not the list as you say.

any advice?

juggledad Feb 18, 2013 12:48 PM

1 Attachment(s)
maybe this picture will help
Attachment 2229

sixleggedinsect Feb 18, 2013 02:25 PM

i appreciate you trying to teach me to fish, but im still perplexed. i had actually already put firebug on the case, but dont really understand what it means when it points me to style.css.

i see the style.css file, and its 'DO NOT EDIT' note in montezuma content. i tried editing content.css where i found the right kind of tags, but that did not work.

can you help me interpret the firebug data? i dont see a reference to a 'visited' link color, just a hover color which is fine as-is.

juggledad Feb 18, 2013 02:48 PM

if you look in the theme options, you will see a CSS section with different css files. these get saved together to make up the style.css file. this is where you should make changes to the css.

since the css doesn't skop the visited psuedo code, it looks like you will have to add it.

sixleggedinsect Feb 18, 2013 03:06 PM

well, i found the visited link css code in the content.css file (as i mentioned in the first post) and edited it, but it still doesn't work. how would i know where else to add this?

(if it is helpful, here is the content.css text from below the "links" section)

a {
color: #0090d3;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

a:active { }

a:visited { color: #015fd1;
}

juggledad Feb 18, 2013 03:57 PM

try this
HTML Code:

.post-bodycopy a:visited {
    color: #bb2222 !important;
}


sixleggedinsect Feb 18, 2013 04:36 PM

that worked! many thanks!!


All times are GMT -6. The time now is 03:31 PM.

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