[Support request] Is color of main nav button controlled by global colors?

Home Forums Support [Support request] Is color of main nav button controlled by global colors?

Home Forums Support Is color of main nav button controlled by global colors?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2062542
    Gary

    Hi
    Im unable to change the color of the main nav button (on the far right) without custom code

    Im currently using Search template but same applies to several others

    Is the color controlled with customiser settings? I cant find anything in customiser thats controlling it but when checking with inspect tool, main nav button has a global color variable applied

    The global colors are great by the way, Im trying to use them as much as I can

    cheers

    #2062767
    David
    Staff
    Customer Support

    Hi there,

    the buttons styles are applied using CSS in Customizer > Additional CSS – this is the Search sites CSS:

    .main-navigation:not(.slideout-navigation) .main-nav li.nav-button a {
    	color: var(--accent);
    	border: 3px;
    	border-style: solid;
    	line-height: 36px;
    	border-radius: 2px;
    	margin-left: 20px;
    	transition: all 0.6s ease 0s;
    }
    
    .main-navigation:not(.slideout-navigation) .main-nav li.nav-button a:hover {
    	color: var(--accent-hover);
    }

    You can see that the colors are using the CSS Variable names that are set in the Customizer > Colors –> Global Colors.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.