• Resolved DQ87

    (@dq87)


    Hey guys!

    I couldn’t find any answer in the forums for this..

    I have blogposts in 2 languages. When the reader is checking the English version it is loading the post with the URL prefix “en” like “mywebsite.com/en/blogpost”.

    Is it possible with some script to make the plugin show the popup when it identifies the user is trying to access the English version?

    Thanks in advance!!

    https://wordpress.org/plugins/popup-maker/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @dq87 – You can use the popmake_popup_is_loadable filter to do that. Basically in that filter, anything you can check with PHP can be used to determine if the popup will load.

    https://gist.github.com/danieliser/32aff18fbf245c58c7fe

    Hope that helps.

    Thread Starter DQ87

    (@dq87)

    Hey! First of all thanks for the answer!

    Where do I exactly implement that code you provided? And do I need to configure this in the popup itself as well?

    Plugin Author Daniel Iser

    (@danieliser)

    @DQ87- You would add it to your themes functions.php file, and you don’t really need to set anything in the popup. You could set it to On Entire site for targeting defaulting it to on, but that is up to you.

    Returning false in that function will prevent it from opening. But be careful that you only change the value if your popup id matches or it will mess with other popups.

    Hope that helps.

    I am not a PHP pro. Can anyone help me here?

    My site uses WPML for multi-lingual support.
    http://www.196flavors.com is ENGLISH
    http://www.196flavors.com/fr is FRENCH

    What functions should I use to show Popup1 on any EN page and Popup 2 on any FR page?

    Thanks a lot!

    Plugin Author Daniel Iser

    (@danieliser)

    @mikewinsc – I will have to look at WPML conditional functions but this should be doable via filters. I will have to do some research to be sure.

    Thanks a lot @danieliser. Keep me posted!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Open popup on specific URL’ is closed to new replies.