• Resolved Mornia

    (@mornia)


    Hello there.

    I’m working on a client’s site which is here: https://journal.orton-gillingham.com/

    There’s a little popup currently showing on all pages and posts in the bottom right with a button that says “Learn More.” (Please note that this particular popup was not created with the plugin.) When you click the Learn More button, a popup with the overlay that was created with this plugin is supposed to show. This works as it should on all pages except for the Blog page that is currently set as the home page.
    If you go to this page: https://journal.orton-gillingham.com/testing-popup/
    You will see that the popup works properly when you click Learn More. It also works here: https://journal.orton-gillingham.com/about-the-imse-journal/
    It even works on individual blog posts. For some reason though, it will not work on the Blog index page that’s set as the home page. The link to the home page is here: https://journal.orton-gillingham.com/

    I can’t seem to figure out why it would work everywhere but the Blog/Home page. Any idea why this is happening only there? I have it setup to work on all pages, posts, categories, everything.

    I would greatly appreciate any help on this. I’m stumped.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Mornia

    (@mornia)

    After further research, I think my issue may be due to the theme not having a proper footer.php. I didn’t notice that before posting. I have to disable the “Learn More” link that’s supposed to show the popup on the Blog/Home page for now due to client request since it’s currently not working. I have a question about the wp_footer issue since I couldn’t find any more info in the documentation. If my footer.php file doesn’t have a body tag, how would I add the <?php wp_footer(); ?> line to the footer.php file? Do I need to make another footer.php file?

    Thank you for your time on this issue.

    @mornia If the footer.php file is missing a closing </body> tag, then you should reach out to the theme developer for support. WordPress themes are typically configured using templates. You should be able to observe whether the theme is serving a closing </body> tag by inspecting the DOM Elements using either Google Developer Tools or FireFox Web Developer Inspector.

    If you need to modify the theme, create a child theme of the parent. If the parent theme updates, any changes to that theme will be lost. With a child theme, modifications are preserved when the parent theme updates.

    • This reply was modified 7 years, 10 months ago by Robert Gadon.
    Plugin Author Daniel Iser

    (@danieliser)

    @mornia, @yogaman5020 – I will add you would need to check the page source, not the inspector. The inspector try’s to auto heal missing closing html tags. Viewing the source gives it the exact way the server sends it.

    Also check for JS errors on your blog page (the one that didn’t work). If your theme didn’t call wp_footer() our popups wouldn’t work anywhere.

    Hope that helps.

    Thread Starter Mornia

    (@mornia)

    @yogaman5020 @danieliser Thank you both for the replies and I apologize for not responding sooner. I was trying to figure out some more info on the problem before responding. I still haven’t figured out why the popups work everywhere except for the home page, but I feel it’s most likely a theme template issue. I found out that the theme was a custom creation by a business that doesn’t seem to be doing this sort of thing anymore, so I am unable to contact them. They appear to have used Twig to create the templates which I know nothing about. I had to Google Twig to find out what it was. I suspected the footer to be the problem since I also do not have a WP admin bar showing up at the top of the page even though I am signed in. Their footer.php file is also setup very strange. I assume this is because they used Twig to create the template files. There is no closing body or html tags in the footer.php though I do see they exist when I view the source in Chrome.

    I also checked for Javascript errors but I only had this one: Uncaught DOMException: Blocked a frame with origin “https://www.google.com&#8221; from accessing a cross-origin frame. at <anonymous>:1:15
    And that error is on the pages that work properly with the popup too so I assume it has nothing to do with it.

    I can tell this though from viewing the source on the home page – it appears that the popup doesn’t exist at all even though I have it setup to work on that page in the popup settings. When I check for Javascript errors in Chrome, there’s the section that’s titled “Popups Initializing.” There is nothing that shows up there. On the pages with the popup that works, it will list the popup right there. So maybe it’s being blocked or something on the home page? I’m not sure if that’s the correct way of wording it but the popup definitely doesn’t seem to exist somehow. Have you heard of that happening before? Or am I just cursed with a crazy template that’s screwing it up?

    Thanks for all the advice on this. It’s greatly appreciated.

    Plugin Author Daniel Iser

    (@danieliser)

    @mornia – Can you tell us what your popups conditions are currently set to? Have you tried removing all conditions? I say this because our scripts load via wp_footer, so in order for you to get even the empty debug info messages means our stuff loaded. This leads back to a condition issue most likely. No condition == On everywhere.

    Thread Starter Mornia

    (@mornia)

    @danieliser I tried out several settings for the popup conditions to try and make it work but nothing affected it. Currently I have no conditions so there shouldn’t be a problem there I wouldn’t think. I had that thought too – like maybe I didn’t have the conditions right so that’s why it wasn’t showing up. That doesn’t seem to be the case though. Here’s a link to the screenshot of the popup’s condition settings so you can double check it just to make I’m not doing something wrong.
    https://www.dropbox.com/s/0pps7ck1cyhhxms/PopupSettingsScreenshot.jpg?dl=0

    Thank you again for the replies and the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Popup not working on Blog page but works everywhere else’ is closed to new replies.