[Resolved] Color of Visited Link does not change

Home Forums Support [Resolved] Color of Visited Link does not change

Home Forums Support Color of Visited Link does not change

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #211537
    Markus

    Hi Tom!

    I try to change the color of visited links in the customizer.
    (Section Colors -> Body)

    Nothing happend.

    So, I inspected the element with Chrome’s developer tools.

    .inside-article a, .inside-article a:visited, .paging-navigation a, .paging-navigation a:visited, .comments-area a, .comments-area a:visited, .page-header a, .page-header a:visited {
        color: #486f88;
    }
    
    a:visited {
        color: #990400;
    }
    
    a, a:visited {
        color: #29526d; #this one is crossed out
        text-decoration: none;
    }

    The last one is the setting in the customizer for color -> body -> links.
    Stored in the inline css
    <style id=’generate-style-inline-css’ type=’text/css’>
    (line starting with “body”)

    The second one is the setting in the customizer for color -> body -> visited links.
    Stored in the inline css
    (same line starting with “body”)

    The one at the top shows the actual color an the page.
    Stored in the inline css
    (same line starting with “.site-header”)

    But there is no color set to #486f88, neither in the color -> body nor in the color -> header section.

    All I can do is to put a

    .inside-article a:visited {
        color: #990400;
    }
    

    in my child theme style.css

    You know how to fix this?
    I would like to use the customizer again for this.

    #211543
    Tom
    Lead Developer
    Lead Developer

    Hmm, interesting.

    Throughout the theme, I’ve set the :visited colors for things like content, site title etc.. as the same as the link color.

    I wonder if I should remove those :visited selectors, and allow the body :visited color to apply to all elements in the theme?

    #211576
    Markus

    Tom,

    sorry, some hours later I got it.
    πŸ™

    Only in the Colors -> Body is a possibility to change the color of a visited links.
    But I thought this is the same as for the content.

    My misunderstanding.

    #211595
    Tom
    Lead Developer
    Lead Developer

    No worries!

    I still wonder if the body visited color should apply to all links theme-wide. Something for me to think about I guess πŸ™‚

    #211611
    Markus

    Hi Tom,

    I do not think it looks good theme-wide; especially in the header oder sidebars.
    Makes only sense for the content, as far as I see.

    #211620
    Tom
    Lead Developer
    Lead Developer

    Cool, thanks for your input πŸ™‚

    #262964
    Johnster

    Actually, while the setting in Colors: Body is there for “Link Color Visited”, I’m finding that it controls the main link color and not the link after being clicked (which is unchanged).

    How do we get this to work properly so it DOES control the link color after being clicked (which is a big navigation advantage?.

    #263034
    Tom
    Lead Developer
    Lead Developer

    It actually only applies to the visited links. Chances are your browser is remembering that you’ve clicked on those links before.

    #263065
    Johnster

    Good point. Hadn’t thought of that (Doh!). Thx, Tom.

    #263091
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

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