Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account?Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress,GenerateBlocks).

Want to become a premium user? Learn more below.

Change the Link Color Visited for a link Inside a Button but only for 1 page

  • Hi,

    When people click on links on my pages/posts, the link becomes blue (as this is the setup I have in Appearance, Color).

    Would be possible to change this behavior for links that are inside one specific page? These links are inside buttons. So, for one specific page, I don’t want the color of the link to change when someone clicks on it.

    Thank you

  • Hi there,

    it is possible… but if you want to avoid Butins from receiving link colors, the best option is:

    In Csutomiuzer > Colors, set the BODY link colors, and DO NOT set the CONTENT link colors.

    In 99% of cases this will work for you, and the buttons won’t attract the links colors from the customiser.

    Let me know.

  • Hi David

    Thank you so much for answering quickly. I changed it (I set up “Default” in the Content Link Colors and kept only the body), but it didn’t work.

    Would it be ok for you to look at the link I am sending in the private box? You will see the links are Blue and I am expecting them to be always white (font color). So white always, when the user comes from the first time, if he/she clicks one time, it will always be white).

    Thank you again

  • Ah… sorry my bad.
    Try adding this CSS:

    
    a.gb-button:visited {
    color: #fff;
    }
    

    It will tell any button when visited to use a different color.

  • HI David,

    Is it possible to restrict this change only to one page?

  • Yes, you can do something like this:

    .page-id-4773 a.gb-button:visited {
    color: #fff;
    }

    The 4773 is the page id, you can find it in the URL of the page editor.

  • THANK You! YOU GUYS ROCK

  • You are welcome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.