Hustle popup not working in my theme
-
In my website theme, hustle-show class does not load. I checked js & it’s fine. No errors in console. But it works for other themes. Website is in my local machine & no cache.
-
I hope you’re well today!
It’s difficult diagnose that without actually testing it as it may be related to a number of various reasons.
I understand that site is local so it cannot be visited from internet, right?
What is the theme that you are using?
Is the theme using any kind of “dynamically generated” CSS and/or JS and/or does it have built-in asset (JS/CSS) optimization? If yes, have you tried to switch it off if possible?
Is jQuery library loaded on site and is it the default WordPress version or is theme replacing it with some newer/older version?
Best regards,
AdamHi,
I have upload the site into a test url temporary. You can check it here. https://www.milosgreece.x2serverphp7.gr/ I have activated the hustle popup, added a popup & deactivated other plugins. theme is a custom made theme. hustle-show class does not load.Thank you for the link.
I can see you are loading jQuery from ajax.googleapis.com, could you disable this jQuery and load the default from WordPress that uses the wp_footer() and see if makes any difference?
Best Regards
Patrick FreitasI have removed ajax.googleapis.com jQuery & loaded WP defaults. But still it’s not working. Thank you.
Thank you for response!
I’ve visited your temporary site and I see that Hustle’s JS scripts and CSS is loaded, without any errors.
This is a good start but I’m wondering if the issue is now still related to site itself or to popup configuration.
Could you export the popup and share with us so we could take a look at its settings?
It’s best to put exported popup file/code on your Google Drive, Dropbox or similar account and just post direct link ot it in your response here.
Best regards,
AdamHi,
From below lonk you can download the popup exported json file. https://drive.google.com/file/d/1XQQJgttPyQCpS7USQ8Zwg9kENeyKM9Vf/view?usp=sharingBut this popup works for other similar themes. So I think the issue should be something else.
Thank you.
I hope you are doing well.
Yes, the PopUp is working well on other themes,
Could you please send me an email to contact@wpmudev.com using this template:
Subject: "Attn: Patrick Freitas" Message: https://wordpress.org/support/topic/hustle-popup-not-working-in-my-theme/
Best Regards
Patrick FreitasOk Sure
Sorry for the delay here.
Our developer found the issue is related to underscore.js, the theme is using 1.6.0 but Hustle uses 1.13.3, could you please update this JS file?
The code is located at framework/includes/scripts.php
When we comment that part the PopUp works fine:
if ( $min === false ) { //wp_deregister_script('underscore'); //wp_register_script('underscorejs', get_template_directory_uri() . '/js/underscore.js', false, $v, true); //wp_enqueue_script('underscorejs'); wp_deregister_script('backbone'); wp_register_script('backbonejs', get_template_directory_uri() . '/js/backbone.js', false, $v, true); wp_enqueue_script('backbonejs');
https://monosnap.com/file/lEL3d6NvDex6YUftH7wnZdHkH8RyBc
Best Regards
Patrick FreitasSince we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.
Best Regards
Nithin
- The topic ‘Hustle popup not working in my theme’ is closed to new replies.