• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Visited headline links change color

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Visited headline links change color

This topic is: resolved

Tagged: headlines

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 8 months ago by Sara.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 25, 2013 at 6:34 pm #37759
    Sara
    Member

    Hi,

    I changed the color of my headlines with the code:

    h2 a:link {

    Why don't they stay that color after they have been visited?

    I tried changing the color of visited headlines with the code:

    h2 a:visited {

    but it didn't work.

    I am new at this.  Help?

    http://thehealthysanctuary.com
    April 25, 2013 at 10:48 pm #37777
    marybaum
    Participant

    I rarely declare the visited state. Or the :link state. I just declare the a tag and the hover state and leave it at that - and given the fact that hover is meaningless on touch devices, I'm tempted to stop with the :hover as well. There are some very accomplished people who are already giving it up.

    That said, here's what you've got going in your headline styles:

    .balance-turquoise a:hover,
    .balance-turquoise h2 a,
    .balance-turquoise h2 a:visited,
    .balance-turquoise #header .menu a,
    .balance-turquoise .menu-primary a,
    .balance-turquoise .menu-secondary a {
    	color: #222;
    }
    
    .balance-turquoise h2 a:hover {
    	color: #69b5b4;
    }

    If you want your :visited state to be the turquoise, you need to move this selector

    .balance-turquoise h2 a:visited

    down to the next block (really called a rule), where you make it turquoise. Right now you have it in a block with all the things that are supposed to be dark grey. Also, you have the :hover state listed (the technical term is targeted) in the grey block as well; I'd get it out of there. It's turning turquoise because you target it again immediately below, which overrides the previous rule. But you really don't want the same selector (the thing you're targeting) in there twice.

    Cheers!

    MB


    Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀

    April 26, 2013 at 10:57 am #37875
    Sara
    Member

    Hello,

    I have done what you explained but to no avail.  Still black after being visited.  I returned the code to normal.

    Perhaps the fact that the headlines are in the sidebar needs additional coding?

    Thank you so much

     

    May 15, 2013 at 1:25 pm #41061
    Sara
    Member

    I tried changing the grey block to blue and that took care of it! Thanks again.

    Sara

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Visited headline links change color’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble