Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2012
    Posts
    137
    Plugin Contributions
    0

    Default How can I change link colors in header, without changing all other link colors?

    I changed the stylesheet so that the EZ Pages header text color is white, but then it changes the color of all the links on my site to white. Then when I have a white background I do not see the links.

    Is there something I can add into the stylsheet so that I can change the colors of link independently?

    Thanks
    Site: http://www.toolsforchrist.com/shop

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: How can you change link colors in header, without changing all other link colors?

    At the very top of your stylesheet.css, you have the following:

    Code:
    a:link, #navEZPagesTOC ul li a {
    	color: #ffffff;
    	text-decoration: none;
    	}
    
     
    a:visited {
    	color: #ffffff;
    	text-decoration: none;
    	}
    As you can see, you've set all links on your site to white (#ffffff). Change that and you'll see your links... But, you might consider changing the way you're building your site - you have a white background and A LOT of white text in your stylesheet - Google's very likely gonna penalize you for that...

  3. #3
    Join Date
    May 2012
    Posts
    137
    Plugin Contributions
    0

    Default Re: How can you change link colors in header, without changing all other link colors?

    Thanks for the response. Do I have white text somehwere besides the links? I really do not want to get penalized by Google.

    I changed the above code to black (#000000), but then something else happens that I dont want. The EZ pages header then changes the text to black. I want those to be white for a:link and a:visted.

    Can I change just the EZ pages text.

    Thanks again

  4. #4
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: How can you change link colors in header, without changing all other link colors?

    Add this to your stylesheet

    #navEZPagesTop a {
    color: #ffffff;
    }

    And if you need the hover add this, and set the color you want

    #navEZPagesTop a:hover {
    color: #f90310;
    }

  5. #5
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: How can you change link colors in header, without changing all other link colors?

    Quote Originally Posted by coreyalderin View Post
    Thanks for the response. Do I have white text somehwere besides the links? I really do not want to get penalized by Google.
    I don't know because I haven't checked your site in details and I see it's still in progress. This is something I noticed in your stylesheet.css - just check it and see how many things are set to #FFF and all on white background.

    The other question I believe was answered by keneso.

  6. #6
    Join Date
    May 2012
    Posts
    137
    Plugin Contributions
    0

    Default Re: How can you change link colors in header, without changing all other link colors?

    Thanks for the responses. I have changed the #navEZPagesTop in all places to be what I want but for some reason it is not working. Most of the text is white like I want it but one of the words is black. Then when I hover over them nothing happens. I cannot figure this out.

  7. #7
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: How can you change link colors in header, without changing all other link colors?

    Well you didn't quite follow the suggestions.

    In your stylesheet you don't have

    #navEZPagesTop a {
    color: #ffffff;
    }

    Do this please:
    add this to your stylesheet
    Code:
    #navEZPagesTop a {
     color: #ffffff;
     }
    find
    Code:
    a:hover, #navEZPagesTop a:hover {
     color: #000000;
     }
    and change to
    Code:
    a:hover {
     color: #000000;
     }
    #navEZPagesTop a:hover {
     color: #whatever-color-you-want;
     }
    if you want to change the color of the link once it has been visited change the color here
    Code:
    #navEZPagesTop a:visited {
     color: #ffffff;
     }

 

 

Similar Threads

  1. v151 Cannot Change Link Colors in CSS
    By amandavz in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 5 Feb 2014, 06:46 PM
  2. Change link colors in side box
    By Hollywood691 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Jan 2011, 02:56 PM
  3. changing link colors
    By balihr in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Aug 2010, 09:26 AM
  4. Changing all link colors
    By willowbean in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 May 2008, 03:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg