Dropshipping is a business model that lets you sell products by using a supplier.
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
https://petjoyz.com/ I have problem with menu close ico and my drop-down bar on my mobile is not working another thing my product page are not displaying as well please I need help for anybody you can see my store like thank you
Hi @petjoy1
I've taken a close look at your concerns regarding the mobile menu's close icon not functioning, the dropdown menu issues, and your product pages not displaying on your Shopify store, petjoyz.com. Let's address each problem step by step.
It's frustrating when the close (X) button on the mobile menu doesn't respond. This issue often arises from JavaScript errors or missing elements in your theme's code. Here's a straightforward solution:
Just before the </body> tag, add the following script:
<script>
document.addEventListener('DOMContentLoaded', function () {
const closeButtons = document.querySelectorAll('.halo-sidebar-close');
if (closeButtons.length > 0) {
closeButtons.forEach(button => {
button.addEventListener('click', function () {
if (document.body.classList.contains('menu_open')) {
document.body.classList.remove('menu_open');
console.log('menu_open class removed from body');
}
});
});
}
});
</script>
When dropdown menus don't function on mobile devices, it can be due to conflicts in the JavaScript or CSS. Here's how to troubleshoot:
1-Ensure that jQuery is included in your theme.
In the theme.liquid file, within the <head> section, add:
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
2-Make sure this script is placed before any other scripts that depend on jQuery.
It's crucial for your products to be visible to customers. Here's how to ensure they're displayed correctly:
By following these steps, you should be able to resolve the issues with your mobile menu and product displays.
If you need any other assistance, feel free to ask, and I will try my best to support you.
Best regards,
Daisy.