- This topic has 2 replies, 2 voices, and was last updated 6 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Background color for links’ is closed to new replies.
Tagged: link background
I would like to make the background color for my links in my menu different from the background color for my links in my blog. I was able to edit the CSS code to change the background color of the menu links but it also changed the background for the author, date etc in the blog. How can I separate them? Thank you!
Hi, to change the background color of menu items only, use this CSS (change #aabbcc for your actual color):
#primary-menu a {
background: #aabbcc;
}
Add the code to Appearance > Customize > Additional CSS or to the stylesheet of a child theme.
It is not recommended to edit the theme’s style.css file directly as your changes will be undone when the theme is updated.
Thank you