I am currently trying to change the colour on a specific menu item for mobile, but cannot seem to get it to work for an item with dropdown options.
I have managed to change the colour of “Hot Deals” as it does not have a dropdown, but the “Clearance” button does not seem to change even after many variations of code which I thought would be the issue.
Thank you for your solution on this, it looks like it has worked.
Would you be able to explain why the “Hot Deals” was able to work with .mobile-menu__nav-item a[href=“/collections/hot-deals”], but the “Clearance” was not able to work in the same way?
Also, the button for “Clearance” looks like it has changed colour as well.
Is there a way to keep it the same as the others, e.g. the dark grey.
On the desktop view the code for clearance is like "Clearance. you can see anchor tag (“a”) is used over there in desktop view , so your code is working there only.
But , if you check the mobile menu the desktop version code is no longer available there and there is a new code like “Clearance