- This topic has 9 replies, 3 voices, and was last updated 7 years, 3 months ago by Tom.
-
AuthorPosts
-
July 20, 2016 at 12:47 pm #211537Markus
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.July 20, 2016 at 1:10 pm #211543TomLead DeveloperLead DeveloperHmm, 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?
July 20, 2016 at 3:42 pm #211576MarkusTom,
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.
July 20, 2016 at 7:06 pm #211595TomLead DeveloperLead DeveloperNo worries!
I still wonder if the body visited color should apply to all links theme-wide. Something for me to think about I guess π
July 20, 2016 at 9:20 pm #211611MarkusHi 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.July 20, 2016 at 11:50 pm #211620TomLead DeveloperLead DeveloperCool, thanks for your input π
January 11, 2017 at 8:11 am #262964JohnsterActually, 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?.
January 11, 2017 at 9:49 am #263034TomLead DeveloperLead DeveloperIt actually only applies to the visited links. Chances are your browser is remembering that you’ve clicked on those links before.
January 11, 2017 at 10:21 am #263065JohnsterGood point. Hadn’t thought of that (Doh!). Thx, Tom.
January 11, 2017 at 11:52 am #263091TomLead DeveloperLead DeveloperNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.