Navigation bar font color

  • Author
    Posts
  • #160600

    serfamiliamx
    Member
    Original poster

    Hi Taras,

    Can you help me with the CSS of my navbar? I’d like to give each category font in the navbar a different color.

    Thanks in advance!
    Lara

    The blog I need help with is: serfamilia472007338.wpcomstaging.com

    #160629

    tarasdashkevych
    Theme Author

    Hello Lara,

    By default, WordPress does not provide color options for the menu items but it provides an option for custom CSS classes. We can use CSS classes to change appearance of the menu links.

    To learn how to add a custom CSS class in your WordPress site, please check the “The Customizer” section at https://themesharbor.com/adding-a-custom-class-to-a-wordpress-menu-link/

    Here is an example of the CSS class you can use on your site:

    
    .site-header .salud-category-menu > a {
      color: red;
    }
    

    Let me know if you have any additional questions.

    Kind regards,
    Taras

The topic ‘Navigation bar font color’ is closed to new replies.