Support » Plugin: Hustle - Pop-Ups, Slide-ins and Email Opt-ins » No work with url language

Viewing 11 replies - 1 through 11 (of 11 total)
  • David


    WPMU DEV Support Staff

    Hi @fabio zoratti,

    Greetings and thanks for posting! πŸ™‚

    Could you let us know what you’re using for the language translations? Another plugin solution?

    Also, could you maybe try the other loading methods at Pop Overs > Settings to see how it works with that?


    I have a WPML plugin. I try with other setting but not work.

    Hi @fabio zoratti,

    Are you using any pop up condition?

    Could you please share me the screenshot of your pop up settings so that i can troubleshoot it?

    You can share me a screenshot of it by uploading the screenshot on any image sharing website like and sharing its unique URL here.

    Kind Regards,

    Hi guys!

    After I upgrade to WP 3.9 specific url stopped working. The plugin is the latest version and I’ve tried all loading methods. The URL has a parameter like “?lang=en”.

    Thanks in advance.



    WPMU DEV Support Staff

    Hi guys,

    I’ve been looking into this one and unfortunately, the issue is that the Pop Up plugin currently accepts only direct URLs, which doesn’t include URL parameters like “?lang=en”.

    It’s basically explained through this post by one of the developers:

    I’m afraid I don’t know know a way around this except maybe with some custom JavaScript like noted here:

    Given that, I think something like this could work:

    function popover_url_parameters() {
    	if ( wp_script_is( 'jquery', 'done' ) ) {
    	<script type="text/javascript">
    	// getUrlParameter() function from
    	function getUrlParameter(sParam) {
    		var sPageURL =;
    		var sURLVariables = sPageURL.split('&');
    		for (var i = 0; i < sURLVariables.length; i++) {
    			var sParameterName = sURLVariables[i].split('=');
    			if (sParameterName[0] == sParam)
    				return sParameterName[1];
    	jQuery( document ).ready(function() {
    		var lang = getUrlParameter('lang');
    		if (lang == 'en') {
    			jQuery( 'div.visiblebox' ).hide();
    add_action( 'wp_footer', 'popover_url_parameters' );

    That could be added to your theme’s functions.php file or using this:

    That particular snippet should hide the popover if the “lang” parameter is equal to “en”.

    The issue though, is that you’d need to customize that sort of code to work with your particular site.

    Does that sound viable to you?


    Hi, David!

    I try to use the code below, but don’t work.
    I uninstalled the current version of the plugin and installed the old version 4.3.2 (the version of wordpress is 3.9) and it worked perfectly.
    Added the URLs ending with “/? Lang = en” and “/? Lang = es” conditions specific URL. The case would be to have a Popup in every language of the site.

    Thank you anyway!

    I have enabled the management of the url with languages ​​without parameters “?lang=en” and it work



    WPMU DEV Support Staff

    Hi @fabio zoratti, awesome! Thanks for letting us know that solution worked, I wasn’t quite sure if WPML had that as an option. Really good to hear it does and that it works for you.

    The snippet I provided can work, though it would likely require some customization to get it to work exactly how you like.

    Hi @ehelry, could you maybe try that non-parameter option that @fabio mentioned? Would that work for you?

    I’ve not tried that previous version with the parameters but that non-parameter option does appear to work. πŸ™‚


    I also want to use this plugin with WPML.
    Could you explain more the non-parameter option mentioned above?
    I think I have to create two pop overs, but which conditions have I to add them?
    My sites are like ; and

    Hi @stosun,

    Greetings and thanks for posting on the forums.

    To help keep support tickets separate, could you please open a new thread for your new question?

    This helps to prevent any confusion as I’m sure you understand, this might also help other members looking for a similar answer. πŸ™‚

    As per theΒ Forum Welcome, you should post your own topic.

    Have a great day!


Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘No work with url language’ is closed to new replies.