Tagged: x
-
AuthorPosts
-
December 20, 2016 at 10:09 am #1299487
ProductionMD1986ParticipantHi, I activated my navbar search tool and it doesn’t seem to work. My site is bilingual (englis/french).
December 20, 2016 at 10:11 am #1299488
ProductionMD1986ParticipantThis reply has been marked as private.December 20, 2016 at 10:43 am #1299524
JoaoModeratorHi There,
What exactly is not working?
Let us know more details,
Thanks
Joao
December 20, 2016 at 11:13 am #1299554
ProductionMD1986ParticipantThe search tool can’t find any page or product in my site.
December 20, 2016 at 1:51 pm #1299690
Nabeel AModeratorHi 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!
December 21, 2016 at 2:03 pm #1300879
ProductionMD1986ParticipantIt worked perfectly. Thank you very much!
December 21, 2016 at 2:34 pm #1300894
Nabeel AModeratorGlad we could help 🙂
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1299487 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
