My website is at https://www.datanumen.com/
I want to change the font of the menu items to bolder, so I do as follows:
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-161"><a href="https://www.datanumen.com/products/">Products</a></li>
li.menu-item.menu-item-type-post_type.menu-item-object-page {
font-weight: bolder;
}
I hope to make all the menu items bolder, so I choose the specifier as specific as to the menu-item-object-page instead of menu-item-161.
Then after doing that, nothing happens. The menu items does not become bolder at all.
Just wonder what I do wrong? Thank you very much.
Update
Have just use the following css rule to bold the menu items:
#menu-main-menu-1 li a {
font-weight: bold;
}
But one more question is that it seems bold and bolder are completed same, see below:
In your css you missed "a"
li.menu-item.menu-item-type-post_type.menu-item-object-page a {
font-weight: bolder;
}
Always choose id over classes as id's are unique so no confusion, as you have id in your ul tag
give the following css
#menu-main-menu-1 li a {
font-weight: bolder;
}