Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi canrangou,

    On the page you linked, I am not seeing your popup being pre-loaded. This is usually due to the page not being added to your popup Conditions. Check the Conditions in the Popup Editor to make sure that the page you linked is being targeted so that the popup will be pre-loaded and be available to be triggered.

    If you want the popup to be loaded throughout your site, leave the Conditions blank (this is the default).

    Check out our Conditions doc for more information.

    If you find everything is great after the adjustment and haven’t already, please do take a moment to click that Popup Maker Works and to rate and review the plugin to spread the love! <3

    Thread Starter canrangou

    (@canrangou)

    Hi Walter,

    Thanks for your quick reply!

    I never touched the conditions and it’s blank. From the documentation I can see leaving it blank means enable it on all pages right? So this might not be the problem?

    Thanks again for your quick support!

    Plugin Author Daniel Iser

    (@danieliser)

    @canrangou – Since its working correctly everywhere else, I would lean toward some type of template replacement or weird conditional issues with the search plugin itself.

    For instance we added WooCommerce specific conditions for this same reason. WC doesn’t use standard is_page( ‘checkout’ ) to detect the checkout page, they have their own functions to do so. Using anything but their custom function will result in a false value which in the case of Popup Maker means the popup doesn’t load.

    I would reach our to their support and start a dialogue. See if they are doing anything out of the ordinary with templates, conditionals or with the wp_head where our popup conditions are checked.

    Since even the popup maker CSS isn’t being loaded there I have a feeling its one of those.

    Thread Starter canrangou

    (@canrangou)

    Hi Danieliser,

    Thank you!

    It makes sense, this page has always been kind of ‘special’ for me since sometimes it seems to override some default templates/views so not perfectly functioning. I think you are right, they might have their own way to determine the page.

    So basically I will just wait? Thanks for your fast support!

    Plugin Author Daniel Iser

    (@danieliser)

    @canrangou – I wou;dn’t wait, not sure what you would wait for :).

    I would reach out to their support and see if they have any solutions to offer.

    Thread Starter canrangou

    (@canrangou)

    Hi Daniel,

    Any update on this issue?

    Today I tried to dump the filters applied on pages that work and didn’t work, and found that on search results page, the “pum_popup_is_loadable” filter was not applied.

    Since I plan to use the popup cross the whole website, is there any way/hook I can use to force the popups being loadable on any pages?

    Thanks and looking forward to your reply.

    Canran

    Plugin Author Daniel Iser

    (@danieliser)

    @canrangou – Did you ever reach out to the search plugins support asking if they are doing anything that may interfere here?

    If pum_popup_is_loadable is never called on search pages then most likely the search results are some how either not calling the wp_header & wp_footer functions or causing ours to stop working for some reason?

    If those filters work on other pages that is the only possible explanation I can think of, we run those filters on every page load of your site by default.

    Thread Starter canrangou

    (@canrangou)

    Hi Daniel,

    Thanks for your reply.

    Actually I took a closer look at it yesterday and found out the reason:

    In load-popups.php, function popmake_preload_popups:

    
    $query = new WP_Query( array(
    		'post_type'      => 'popup',
    		'posts_per_page' => - 1
    	) );
    

    Somehow on search page it’s returning some random posts which are not popup type and of course cannot be loaded, while it’s returning correct popup posts on other pages.

    I added 'suppress_filters' => true in WP_Query and now it’s working properly. It’s just a workaround and I’m still digging if the filter added to WP_Query is from your plugin or other plugins.

    Thanks again.

    Canran

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Popup not working on search result’ is closed to new replies.