-
help4ricknw
Is there a way to execute jQuery scripts using GP Elements?
Thanks!
-Rick -
You can add script to GP’s hook element, and set the hook name to
wp_footer
. -
help4ricknw
Thanks Ying, I appreciate your prompt reply. Using your suggestion, the jQuery script works fine, as long as I am logged into WordPress, but it fails when I’m logged out. The page source included below:
-Rick
-
What is the script you are using? I can help check if it’s being inserted into the site.
You can check if user rules are defined in the hook at the mean time, if so, remove it.
Let me know 🙂
-
help4ricknw
The script is noted below. No users are assigned in the wp_footer hook.
-
I can see it in the HTML, it is correctly installed.
https://app.screencast.com/rhCXMjr9WuHbbIf it doesn’t work on the front end, but works on backend, there might be a jQuery conflict with other plugins.
Can you try to disable all plugins to test?
Let me know 🙂
-
help4ricknw
I have very few plugins. I have disabled all but Elementor and GP Premium. Same result. Maybe I should look for a plugin, such as Simple Custom CSS and JS, that claim to run jQuery.
- You must be logged in to reply to this topic.