I'm a beginner currently working on creating my own navbar on my home page and am having some issues changing the font (color, font-family etc).
By default, the links in my nav bar (home, contact, store etc) are formatting as links, as they are links. I've gone into my style.css file and declared a new ID, a.nav {} but I'm not sure how to make my navbar use this instead of the default a {}.
This is the code I have in my header.php file:
<nav class="site-nav">
<?php
$args = array(
'theme_location' => 'primary'
);
?>
<?php wp_nav_menu( $args ); ?>
</nav>
</header>
This is the code I have in my style.css file:
## Links
--------------------------------------------------------------*/
a {
color:#000;
}
a:visited {
/*color:#454545;*/
}
a:hover,
a:focus,
a:active {
color: #fff;
text-decoration:bold;
}
a:focus {
outline:none;
}
a:hover,
a:active {
outline: 0;
}
/* Links - home.site-nav */
a.nav:link {
font-family: montserrat;
font-weight: 100;
font-style: normal;
color:#fff;
}
a.nav:visited {
/*color:#454545;*/
}
a.nav:hover,
a.nav:focus,
a.nav:active {
color: #fff;
text-decoration:bold;
}
a.nav:focus {
outline:none;
}
a.nav:hover,
a.nav:active {
outline: 0;
}
What I want is for my nav bar to use the newly declared a.nav class instead of the a. Any ideas?