I need help on a few things please!

Hello - I am building a new website and am trying to fix the last few issues before launch.

Issue 1 - The hamburger menu is not working on mobile.

Issue 2 - I have a mystery page that I want people to try and find. However it comes up very easily in search results. Is there a way to ensure a product/page doesn’t come up as a search result?

It is worth mentioning that I have been trying out a few things with code. I thought I had restored everything back to how it was, but this may be causing the issues…?

Any help is appreciated - thank you!

Could you please share your store’s URL. That would be really helpful

Yes of course - www.thisiskutopia.com

Thank you :slightly_smiling_face:

Could you also share your store’s password?

Sorry! First time I’ve ever asked for help on here haha. Bit of a newbie.

Password is unicorn

Did you change anything in the ‘header.js’ file? because there is an error.

I may have, yes. I was trying to fix an issue and was tweaking some coding. But I have had a look through it and cannot recall what it was that I entered, in order to remove it. And it did not give me the option to revert back to the original file, unlike others. Is there any way I can resolve the issue in the coding?

Can you please go to the ‘header.js’ file in your theme’s code and at line 207 paste this code:

}
 customElements.define('full-menu', FullMenu);
}

Okay I will try this.
It does not go up to 207 - do I just put spaces in until I get to line 207?

Could you provide me with an image that showcases the code from line 170 until 206?

Of course - screenshot attached.
I added in your recommended code (as you can see on screenshot) and I THINK it is working…

Okay nice now I checked and the humburger menu works now! Now remove the spaces between the line 191 and 207

Done! AMAZING!! Thank you so, so much! I am so appreciative. :slightly_smiling_face:

Do you also know if there is a way to make a page/product exempt from ‘search’?

For Issue 2 there is a theoretical way to achieve this but I haven’t tested it myself. You can go to ‘main-search.liquid’ or something like that and before rendering each product based on the search you can check if the search result product is the mystery product then ignore it and not show it .

Okay thank you so much. I’ll look into this one some more.

I really appreciate the help on my first issue - it was the one causing me the most grief!

Happy to help!

1 Like

I can help you with Issue 2 if you want.