Home Forums Trusted Background color for links

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5416
    ltposton
    Participant

    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!

    #5417
    Yazmin
    Keymaster

    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.

    #5419
    ltposton
    Participant

    Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Background color for links’ is closed to new replies.