Dear community,
Hope you can do your magic again. Need your assistance with something that might be quick.
I have this piece of code in my theme.css and it does half of the job. It highlights in bold submenu’s All wines and All spirits but it does not do that with All alcoholic drinks and All non-alcoholic drinks. Any suggestions of what needs to change?
Here’s the code:
}
[title=“All alcoholic drinks”] span, [title=“All wines”] span, [title=“All non-alcoholic drinks”] span, [title=“All spirits”] span {
font-weight: bold !important;
}
Hi @MAndreiD
That is not a great way to target elements; you have other options. And it does not work because some of the links do not have title attribute so can not be targeted.
If your idea is to have the first list item in bold, here is what you can do instead one what you have. Note that it will make bold all, so All gift ideas too.
.submenu li:first-child span {
font-weight: bold !important;
}