main menu

main menu

joysa
Shopify Partner
14 0 4

hello,

 

I added a submenu for "collection" heading, but the subheadings are now on the top left. How can I make them under collection heading itself. I tried in the customization theme but didn't work.

Screen Shot 2024-09-28 at 3.01.12 PM.png

Reply 1 (1)

BSS-TekLabs
Shopify Partner
2350 701 826

- Here is the solution for you @joysa 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
html:not(.no-js) .navigation__submenu-item [data-link] {
    text-align: center !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1727875390527.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now