We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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
2144 268 319

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/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
joysa
Shopify Partner
14 0 4

shifabynajla.myshopify.com

shifabynajla

Moeed
Shopify Partner
7764 2082 2568

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

- Get a quick Shopify quote – Click here!

- 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
10211 2427 3079

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an 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
2401 695 836

 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