Shopify themes, liquid, logos, and UX
Hello, I am building a store using the "Fresh" theme. The navigation menu looks fine on desktop/tablet but on mobile the menu drawer displays all the links twice. (I am guessing it is due to the topbar menu part of the header)
Is there a way to hide or remove these using CSS without effecting the normal header menu?
Here is the link:
https://hziz8w30dfq0hksl-85943648529.shopifypreview.com
Desktop:
Mobile:
Thanks for the help everyone!
Solved! Go to the solution
This is an accepted solution.
Hi @biznazz101 ,
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<script>
const menuItems = document.querySelectorAll('#mobile-menu--main-menu li');
let uniqueItems = [];
menuItems.forEach(item => {
const text = item.textContent.trim();
if (text !== '' && !uniqueItems.includes(text)) {
uniqueItems.push(text);
} else {
item.style.display = 'none';
}
});
</script>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Was I helpful?
Sandesh Paudyal |
| Shopify Developer
Need help with your store?
sandeshpaudyal99@gmail.comFor quick response - Message Me : +9779851353732
This is an accepted solution.
Hi @biznazz101 ,
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<script>
const menuItems = document.querySelectorAll('#mobile-menu--main-menu li');
let uniqueItems = [];
menuItems.forEach(item => {
const text = item.textContent.trim();
if (text !== '' && !uniqueItems.includes(text)) {
uniqueItems.push(text);
} else {
item.style.display = 'none';
}
});
</script>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Was I helpful?
Sandesh Paudyal |
| Shopify Developer
Need help with your store?
sandeshpaudyal99@gmail.comFor quick response - Message Me : +9779851353732
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025