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

Replies 8 (8)

websensepro
Shopify Partner
1221 136 156

Hi @joysa , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

Free Shopify Beginner Tutorial
joysa
Shopify Partner
14 0 4

shifabynajla.myshopify.com

shifabynajla

Moeed
Shopify Partner
5499 1486 1776

Hey @joysa 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag\

<style>
@media screen and (min-width: 768px) {
li.navigation__submenu-item {
    margin: 0 !important;
}
ul.navigation__submenu-list {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
}
}
</style>

RESULT:

Moeed_0-1727871973622.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


joysa
Shopify Partner
14 0 4

Thank you. But please check how I want it to be 

Screen Shot 2024-10-03 at 3.50.31 PM.png

Made4uo-Ribe
Shopify Partner
8337 1996 2456

Hi @joysa 

Check 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 "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

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

 

And Save. 

Result:

Made4uoRibe_0-1727874081840.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
joysa
Shopify Partner
14 0 4

Thank you. But please check how I want it to be 

Screen Shot 2024-10-03 at 3.50.31 PM.png

BSS-TekLabs
Shopify Partner
2350 702 827

 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-1727875482167.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
joysa
Shopify Partner
14 0 4

Thank you. But please check how I want it to be 

Screen Shot 2024-10-03 at 3.50.31 PM.png