Support » Plugin: Elementor Header & Footer Builder » Search and polylang

  • Resolved mstudioIL

    (@mstudioil)


    I using Polylang in my site and the search icon is not working, the search input is not adding the country code to the site URL, if my site is site-name.com and I have Spanish is my site I don’t get the right URL site-name.com/es it stays site-name.com so I don’t getting results
    How do fix this?

    • This topic was modified 5 months, 3 weeks ago by mstudioIL.
    • This topic was modified 5 months, 3 weeks ago by mstudioIL.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Fahim Murshed

    (@fahimmurshed)

    Hello @mstudioil,

    Sorry for the late response. Have you figured out the issue or still facing the problem with the latest version? Please provide us with some more information on how to reproduce; maybe we can help you better.

    It would be great to make a short video and indicate the issue you faced on your end.

    I anticipate hearing from you.

    • This reply was modified 1 month, 3 weeks ago by Fahim Murshed. Reason: "Latest" word missing
    Thread Starter mstudioIL

    (@mstudioil)

    Hey, I fixed it with JS, I checking the “lang” attribute and adding the country code
    It is as I wrote, the search URL is always the same

    Plugin Support Fahim Murshed

    (@fahimmurshed)

    Thank you for responding! We are pleased to hear that the issue has been resolved and that you are now able to continue work.

    Please take precautions to protect yourself, and I wish you and your loved ones good health!

    Don’t forget to mark the topic as “Resolved” from the right sidebar.

    Have a beautiful day ahead. 🙂

    Thread Starter mstudioIL

    (@mstudioil)

    Did you added this to the plugin or do I still need to add the JS myself?

    Plugin Support Fahim Murshed

    (@fahimmurshed)

    Hello @mstudioil,

    Thanks for getting back. We didn’t add anything. I think you must add the JS by yourself. I was curious as to how you handled the situation. Please provide us with an explanation.

    I anticipate hearing from you.

    Thread Starter mstudioIL

    (@mstudioil)

    I don’t remember the site I used the plugin, but the code is something like this
    jQuery( document ).ready( function( $ ) {

    theLanguage = $('html').attr('lang');
    	
    	if(theLanguage == "es-ES"){
    		$('.some-form-class').attr({"action":"https://site-name.com/es"});
    	}
    	if(theLanguage == "pt-PT"){
    		$('.some-form-class').attr({"action":"https://site-name.com/pt"});
    	}
    });

    English is the main, so I don’t check for it.

    Plugin Support Fahim Murshed

    (@fahimmurshed)

    Thanbks for sharing the code.

    Thread Starter mstudioIL

    (@mstudioil)

    Happy to share, hope it will help somehow to the plugin

    Plugin Support Fahim Murshed

    (@fahimmurshed)

    That’s awesome. I am sharing this to our developers.

    Have a wonderful day ahead of you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.