-
AuthorPosts
-
June 6, 2025 at 4:47 pm #238008
Moringa MagicParticipantHi,
I’m using the WordPress Lucky Wheel plugin with the Divi theme. I’ve set the popup to appear on a specific page (ID: 1341), and it works fine when using standard templates. However, on Divi’s Blank Page template, the popup doesn’t show at all — likely because wp_footer() doesn’t get called.
I’ve verified that:
The JS file is not loading by default.
Adding the script manually with wp_enqueue_script works, but the popup still doesn’t trigger.
The required config variable (_wplwl_get_email_params) isn’t injected when using Blank Page.
Conditional logic is set correctly (is_page(1341)), and logging shows the eval result as true.
To test, I tried manually outputting the config and triggering the popup with:var _wplwl_get_email_params = {…}; // plugin settings
document.addEventListener(“DOMContentLoaded”, function () {
document.body.dispatchEvent(new CustomEvent(‘wplwl-render-popup-wheel’));
});This only works if I hardcode the settings, but I don’t want to duplicate what’s already set in the plugin admin.
Question:
What’s the cleanest way to load the Lucky Wheel popup (with the correct dynamic settings) on a Divi Blank Page template without modifying the plugin core or relying on wp_footer()?
Thanks in advance! -
AuthorPosts
You must be logged in to see replies to this topic. Click here to login or register