Changing Color of Font
-
Hey All,
I hope this finds you well. My question pertains to the font on one of the premium themes. I am able to edit the general color of the font using the editor. However, I can’t figure out how to edit the color of the font once a link has been clicked on. I changed the color of my theme to yellow and white, but whenever someone clicks on a link from the dropdown menu on the header, the font turns red (indicating previous action) until the page is refreshed.
What CSS code can I submit to change the red to a color that matches my overall edited theme?
Best,
BenThe blog I need help with is: (visible only to logged in users)
-
Hi, creatorvilla,
It seems like you figured it out and changed it already?
a, a:visited {
color: #996209;
}
Good job! -
Thanks for the help here.
Quick tip: Above the reply box you’ll see some formatting buttons. When posting code for someone, make sure to click the
codebutton before and after writing/pasting your code, or wrap your code in backticks. That way the code formatting is preserved, and it also prevents the forum from trying to render the code instead (or from stripping out code likescripttags which aren’t allowed on WordPress.com) -
Thanks for the help. T
The text is still showing up as red after changing the color. If you click on one of the dropdown options from the header links at the top you will see what I mean. The tab the user is clicked on turns red.
-
For that, add this via Additional CSS:
.sf-menu > li li.current_page_item > a, .sf-menu > li li.current-menu-item > a, .sf-menu > li li.current_page_ancestor > a, .sf-menu > li li.current-menu-ancestor > a, .sf-menu > li li.current-menu-parent > a { color: #996209; } -
-
Hello,
I know I marked the issue as resolved, but I discovered on the mobile version of my website that the font is still showing up as red. There’s a special dropdown menu with the same headers and sub-headers as the desktop site, but apparently a different code for the font.
How can I change the font color indicating the tab the user has clicked on? As you can see on the Desktop version, I want the font color to go from red to a golden yellow.
Best
-
Hi Ben,
Add this to your Additional CSS:
.primary-menu-responsive > li li.current_page_item > a, .primary-menu-responsive > li li.current-menu-item > a, .primary-menu-responsive > li li.current_page_ancestor > a, .primary-menu-responsive > li li.current-menu-ancestor > a, .primary-menu-responsive > li li.current-menu-parent > a{ color: #996209; }That will change the current menu item color to your golden yellow on the mobile menu.
Don’t overwrite the code staff-blorbo gave you previously, you still need that for the desktop menu styles.
-
-
-
- The topic ‘Changing Color of Font’ is closed to new replies.