-
-
The Codeless header has a bug that hangs the webpage on a specific header style.
You can reproduce the issue on https://codeless.co/june/default/?product=printed-melange-t-shirt&cl_on&cl_header_change=main13 just hover on the shop icon and the web page now hangs entirely.It is trapped in this infinite loop.
Analysis
This mainNode is never a parent of item. No doubt it stucks in infinite loop right?
Resolution
We can simply replace the loop condition to:while ( ! $(item).hasClass('tool') && ! $(item).hasClass('extra_tools_wrapper') ) {
However now the dropdowns don’t always close. The problem is in the close() function.
mainNode = this.config.$headerTools;
We have to patch this line too.
-
Hello,
This is the responsive header style! You will see it in almost 99% of all available websites. When the screen size is smaller than the menu width, the mobile layout takes over. Where the menu is replaced with the mobile menu icon (three bars menu). It will unfold the menu items when tapped over (mobile) or clicked on (computer).
This is not an issue. You you want to change this, it’s ok. But we recommend you use custom css (in Additional CSS menu) or a child theme. So you won’t lose the changes in case of future theme updates.
Let us know.Best regards!
-
have the same problem!
thank you Tyt2y7
Mihaila, it is the real issue.
I hope you will fix it urgently
The last version of the theme has a lot of bugs and this is very serious. -
My issue also fixed by this tip, thanks @Tyt2y7 :)
- This reply was modified 6 years, 9 months ago by kamilpatyk.
-
Can you please say what to fix in the close() function?
I replaced this line
while ( ! $(item).hasClass('tool') && ! $(item).hasClass('extra_tools_wrapper') ) {
and cannot undestand what else should I changethank you
- This reply was modified 6 years, 9 months ago by Volya.
-
line number 3003
mainNode = this.config.$headerTools[0];
to
mainNode = this.config.$headerTools;
-
thank you @kamilpatyk
I did it, but there is still an issue.
When I hover on wishlist in the header my tab crushed and I even cannot start to debug :-(
https://new.world4kidz.co.uk/ -
This is not a false alarm. I have professional engineers helping to me fix theme bugs everyday. And this is a common thing to happen. Just to be sure you put in the necessary effort to investigate, fix and patch the bugs. So that we can benefit others later to come. Otherwise you are harming yourself. I will forgive some bugs given that June is a really young theme.
Please get back to the engineers, evaluate this patch, and update it ASAP. You can reproduce the issue on https://codeless.co/june/default/?product=printed-melange-t-shirt&cl_on&cl_header_change=main13 just hover on the shop icon.
Thank you. Sorry for not make myself absolutely clear. There are only two line of code to change, and exactly as mentioned.
You site seems perfectly normal to me now.
- This reply was modified 6 years, 9 months ago by tyt2y7.
-
Hello,
I am sorry for not understanding your point. I have referred this to theme developer and we will try to release an update as soon as we can.
Thank you all for the cooperation!
Best regards!
-
@tyt2y7
Thank you, yes now it works fine. I suppose that because the LiteSpeed web server causes a problem with cache I need more time to implement changes.I agree that the June theme is young but perspective, so we need to be patient and
I will forgive some bugs but expect a quick fix for serious bugs. -
-
Thanks to all of you for mentioning this issue :)
Just Updated, next release will be ok.Thanks again!
-
You must be logged in to reply to this topic.