Shopify themes, liquid, logos, and UX
Hi, im hoping to make these headings in my mega menu bold but can't find the correct code - is anyone able to help? https://theonlinetoyshop.co.uk/ its the headings 'Outdoor Toys' 'Indoor Toys' etc
Solved! Go to the solution
This is an accepted solution.
Try this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "component-mega-menu.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.mega-menu__link--level-2 {
font-weight: 900 !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @OnlineToyShop. Hope you are doing well.
Please go to theme editor and put this line of code in "Custom CSS" section (https://snipboard.io/ew6bOp.jpg)
.mega-menu__link--level-2 { font-weight: 700; }
Thank you for your quick reply! Ive tried this but its not changed anything
Hi. You've added it in wrong way.
It should be like that
.mega-menu__link--level-2 {font-weight: 900;}
NOT like that
<style> .mega-menu__link--level-2 {font-weight: 900;}
Thank you, i didnt add the style in previously but maybe i have messed around with the code... it seems to have worked on two category headings (namely Furniture and Ride On Toys) but not the others... they are also a little small? Thanks again 🙂
Yes. I saw these lines of code in your component-mega-menu.css file
.mega-menu__list li:nth-child(5) .mega-menu__link--level-2 {
font-size: 15px!important;
font-weight: 700!important;
}
.mega-menu__list li:nth-child(6) .mega-menu__link--level-2 {
font-size: 15px!important;
font-weight: 700!important;
}
That make the "Furniture" and "Ride On Toys" bold and smaller than others.
Please check it.
Thanks, ok i have removed those now, included your customer CCS as you detail above but it has still not changed the titles in the sub menu to bold...
Sure, see attached screenshot and its been added to the custom CCS section
This is an accepted solution.
Try this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "component-mega-menu.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.mega-menu__link--level-2 {
font-weight: 900 !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Amazing thank you so much thats worked!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024