Popup not loading
-
I just installed this and set the popup to load immediately and on page exit on the home page, to start with. It doesn’t load at all. I’ve tried purging cache, turning off cache entirely. I’ve tried multiple browsers. I even tried health check and troubleshooter. Nothing works. I really need the ppop-up What am I missing?
The page I need help with: [log in to see the link]
-
Additional: the popup works on test page and another page, but NOT the home page. They only contain default and Generateblocks. What could be keeping it from working on just the home page?
Hello there @starhorsepax2 ,
Thank you for taking the time to explain everything you have already tried.
To help us narrow this down, could you please confirm a couple of things for me?
Have you had a chance to review our popup troubleshooting guide here:
https://kb.mailpoet.com/article/363-how-to-create-a-pop-up-slider-formCan you also confirm that the popup is currently active? Can you send us a screenshot of the settings?
Finally, could you please share a direct URL to one of the test pages or another page where the popup is working correctly? That will allow us to compare the setup between the homepage and a page where the popup displays as expected.
Once we have that information, we will be in a better position to identify what might be preventing the popup from loading specifically on the homepage and guide you on the next steps.
I didn’t see anything on Popup troubleshooting to explain.
The Popup is active.
Here is the test page.
Here are the settings. Screenshot 1 and Screenshot 2
I also tried (after taking the screenshot) adding ‘home’ under pages next to the test newsletter popup page, instead of just using the switch to enable on home page. That didn’t work either.Oh. I can DEFINITELY confirm wp_footer is working. I thought to make an element that hooked to it and run it. The test shows what I added to the wp_footer hook.
Hi @starhorsepax2,
I opened the page you shared and the pop-up showed immediately for me: https://d.pr/i/c0PYTU
So it is working but it isn’t showing for you because either you’re logged in and subscribed to one of the form’s lists or you dismissed the form before.
You could try clearing cache and opening the page in a different browser or an incognito window, without logging in and see if that works.
Feel free to get back to us in case you have any additional questions!
The test page was not the problem. It works on the test page and every other page. EXCEPT the page we NEED it on: the HOME page. This isn’t just me. I’ve checked in multiple browsers both logged in and not, and been sure to unsubscribe.
Hi @starhorsepax2 ,
To debug further, could you briefly set the test page as the home page and check if the popup loads as expected given it was loading in earlier tests?
This would give us a clue to understand if the theme sets the home page in specific way that conflicts with this pop-up form.We look forward to hearing back from you as soon as possible.
I will try this soon. On vacation but I will login when I get a chance! Probably later today.
I switched home page to test page in Customizer. I didn’t even publish and the pop up instantly came up.
very odd. Why does it hate our home page?
I found it. Now the question is, can you fix it? If I copy the page and delete the Generateblocks QUERY LOOP that is calling the latest posts, the pop up instantly appears.
Is it fixable? I’ll consult Generateblocks devs too.Hey @starhorsepax2, thanks for the details. I don’t think this is something MailPoet can fix in the plugin itself, but rather a conflict with how your homepage is structured.
As I understand, the popup works on other pages but not on your home page, and the difference seems to be the GenerateBlocks Query Loop that pulls in your latest posts. When that loop is removed, the popup loads normally.
You ca temporarily switch the homepage to a static, simple page (no loop) and see if the popup shows. If it is indeed GenerateBlocks causing it, reaching out on their support forum is the best idea, as they may have insight on why their Query Loop block affects popup scripts.
We’ve been in contact with them, and they pointed me back to you. Have you no ideas at all?
I hate to have to switch newsletters. Or have to find a way to embed the Mailpoet in a different plugins popup (assuming a different popup would work.)
Here is the thread where it’s been discussed.Ah. OK we have an answer….can you help with a solution? It seems to be SPECIFICALLY the excerpt part of the loop
Generatepress response:
“My theory is that MailPoet hooks into one of these excerpt filters to prevent their popup from rendering when in a “loop context”. I have also tested it with the core loop, the excerpt creates the issue. I think you need to inform them about it. They should be able to test it locally and possibly publish an update.”Hi there,
I tested on my site with a core loop this is actually the expected behavior. The popup form is not supposed to show on listing pages such as Blogs, Archives, etc.
I hope this clarifies things. Feel free to get back to us in case you have any additional questions!
No workaround? I was thinking there might just be a code snippet or something.
You must be logged in to reply to this topic.