Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › A Quick help is needed
This topic contains 53 replies, has 2 voices, and was last updated by daro201370 1 year, 9 months ago.
- AuthorPosts
- August 20, 2021 at 12:42 pm #34323
Indeed. I made an adjustment, can you try now?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 20, 2021 at 2:53 pm #34325Update: When I change ASP to Compact box, it stops working.
Can you please check it on dev site:
Thanks
ThonAugust 20, 2021 at 10:23 pm #34328You cannot access this content.August 21, 2021 at 8:18 am #34329I assume you don’t want the redirection on the magnifier click, for using the compact mode. I removed that section, you can try now.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 21, 2021 at 12:53 pm #34332You cannot access this content.August 23, 2021 at 7:56 am #34336Hi Thon,
Well, you can use the same settings on the live as you used before, the code should be this one:
add_action('wp_footer', 'wp_footer_asp_custom_redirect', 9999); function wp_footer_asp_custom_redirect() { ?> <script> (function($){ let url = 'https://www.khmeradverts.com/'; function reattach() { $('input.orig').off('keydown').off('keyup'); $('input.orig').on('keydown', function(e){ let keycode = e.keyCode || e.which; if ( keycode == 13 ) { e.preventDefault(); e.stopImmediatePropagation(); e.stopPropagation(); location.href = url + '?s=' + $(this).val() + '&category=&location=&a=true'; } }); } reattach(); setTimeout(function(){ reattach(); }, 100); setTimeout(function(){ reattach(); }, 300); setTimeout(function(){ reattach(); }, 1000); })(jQuery); </script> <?php }
And then it should be all right there as well.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 23, 2021 at 12:51 pm #34343You cannot access this content.August 23, 2021 at 2:17 pm #34346Yes, it is the same, the difference is the URL.
Best,
This code should work even after an update, you don’t have to worry about that.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 24, 2021 at 6:03 am #34352Many thanks
Thon - AuthorPosts
You must be logged in to reply to this topic.