Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1299487
    ProductionMD1986
    Participant

    Hi, I activated my navbar search tool and it doesn’t seem to work. My site is bilingual (englis/french).

    http://produits-sante-shake-proteine.com/

    #1299488
    ProductionMD1986
    Participant
    This reply has been marked as private.
    #1299524
    Joao
    Moderator

    Hi There,

    What exactly is not working?

    Let us know more details,

    Thanks

    Joao

    #1299554
    ProductionMD1986
    Participant

    The search tool can’t find any page or product in my site.

    #1299690
    Nabeel A
    Moderator

    Hi again,

    Try adding the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript

    jQuery(document).ready(function($){
    	var url = window.location.origin;
    	$('.search-query').keypress(function(event){
    		var keycode = (event.keyCode ? event.keyCode : event.which);
    		if(keycode == '13'){
    			event.preventDefault();	
    			var searchFor = $(".search-query").val();
    			url = url + "/?s=" + searchFor;
    			window.location = url;
    		}
    	});
    });

    Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!

    #1300879
    ProductionMD1986
    Participant

    It worked perfectly. Thank you very much!

    #1300894
    Nabeel A
    Moderator

    Glad we could help 🙂

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1299487 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>