Changing link color in Enterprise theme

  • Author
    Posts
  • #759063

    I have determined the code for changing the color of links in my blog here:

    a,a:visited {
    color:#780000;
    text-decoration:none;
    }

    The problem is that this also changes the color of links in my blogroll. On a previous theme I was able to isolate the code and change just the links in the text body without affecting the blogroll. I don’t see a solution in Enterprise. Can someone help?

    The blog I need help with is progressconservative.com.

    #759165

    You have to specifically target the element that you want by including the selector for the parent element. What is required will vary from theme to theme as different theme designers do things differently.

    #content-left a, #content-left a:visited {
    color: #780000;
    }

    #759166

    Sorry, forgot the code tags.

    #content-left a, #content-left a:visited {
    color: #780000;
    }
    #759180

    That isolated the link in the body text (hooray, halfway there!) but the “Leave a Comment (Edit)” is still carrying the same color. I assume that is a ‘sibling’ of the link?

    This level of coding is over my head.

    #759185

    The above changes all the links in the enterprise content area as far as I can see (categories, leave a comment, etc.). Change the color code temporarily to green to see what I mean. I just did it to one of my test blogs and all links in the content area changed.

    #759187

    Correct. Is there any way to isolate the “Leave a Comment (Edit)” and the Categories and make them a different black? Basically, the only think I want to stand out in a different color are links in the body of my posts.

    #759192

    Ah, now I see what you want.

    .post-comments a, span.categories a {
    color: #000000 !important;
    }
    #759208

    That works! Thank you so much!

    #759211

    You are welcome.

The topic ‘Changing link color in Enterprise theme’ is closed to new replies.