Hi there,
Any help would be greatly appreciated.
I am trying to reduce the font size in our websites menu
https://www.coffee.prestigerepairs.com.au/
I have tried the typical code in the websites theme liquid with no success. I have also tried the important variant of this code with no success.
@media only screen and (min-width: 769px) {
.header__menu-item {
font-size: 12px; /* Adjust the font size as needed */
}
}
@media only screen and (min-width: 769px) {
.header__menu-item {
font-size: 12px; /* Adjust the font size as needed */
}
}
1 Like
Hey @MollieHammond ,
It seems like you’re targeting the wrong classes in your code snippet. Here’s a revised version for you to try:
@media only screen and (min-width: 769px) {
/* Top Level item like Home Coffee Machines */
.mobile-navlink--level-1 {
font-size: 12px;
}
/* Submenu like automatic home coffee machines */
.mobile-navlink--level-2 {
font-size: 12px;
}
}
This should adjust the font size for your website’s menu on screens wider than 769px. If you need to adjust font sizes for smaller screens, you can add similar rules within @media queries for different screen sizes.
Let me know if you need further assistance!
Hi, thanks so much for taking the time to reply. I copied and pasted the code you provided but it’s still not changing. Maybe i’m not understanding?
Hey @MollieHammond
Seems like you have added the code outside the style tags. If you could move the code in the Paste the code here . It is currently a plain text that has been added to the bottom of your site. Just move it above the and you should be good mate.
If it still doesn’t work then add !important like
@media only screen and (min-width: 769px) {
/* Top Level item like Home Coffee Machines */
.mobile-navlink--level-1 {
font-size: 12px!important;
}
/* Submenu like automatic home coffee machines */
.mobile-navlink--level-2 {
font-size: 12px!important;
}
}
You are an absolute champion! Thank you so much. Saved me a few extra grey hairs XD
1 Like
You’re very welcome! I’m glad I could help and save you some stress. If you have any more questions or need further assistance, feel free to ask. Have a great day! 
1 Like