Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › target="_blank" modification cannot take effect.
This topic contains 5 replies, has 2 voices, and was last updated by YUANFAN 4 months, 2 weeks ago.
- AuthorPosts
- September 24, 2022 at 7:38 am #39450
I modified the code in the browser, target=”_blank” was changed to target=”iframe_2″
But no change.-
This topic was modified 4 months, 2 weeks ago by
YUANFAN.
-
This topic was modified 4 months, 2 weeks ago by
YUANFAN.
-
This topic was modified 4 months, 2 weeks ago by
YUANFAN.
Attachments:
You must be logged in to view attached files.September 24, 2022 at 9:54 am #39456Hi,
Try to turn off this option, it may help: https://i.imgur.com/IKvXCZ4.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 24, 2022 at 12:20 pm #39458Tried it, nothing works. The problem still exists.
September 24, 2022 at 3:12 pm #39461Okay, let’s try it programmatically then via a custom code.
Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
Best,add_action('wp_footer', 'asp_add_footer_script', 99999); function asp_add_footer_script() { ?> <script> (function($){ $(".asp_m").on("asp_results_show", function() { setTimeout(function(){ $('.asp_r .item').off(); $(this).find('.asp_res_url').off(); $('.asp_r .item').on('click', function(e){ $(this).find('.asp_res_url').get(0).click(); }); }, 100); }); })(WPD.dom) </script> <?php }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 24, 2022 at 4:27 pm #39462After the code is added, clicking on the link will not cause any jumps.
September 25, 2022 at 3:25 am #39464 -
This topic was modified 4 months, 2 weeks ago by
- AuthorPosts
You must be logged in to reply to this topic.