PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]
Botoscope is currently in early access

Support Forum

You need to log-in to create request (topic) to the support

Prevent new browser tab after search result

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I am using Husky products filter 3.3.7.4 and when I click on the search result it opens the single product in a new browser tab. How can I prevent this and keep the search result in the same browser tab?

Thanks

Hello

This behavior is not caused by HUSKY itself — the new tab is triggered by a target="_blank" attribute on the product links, which comes from your theme or another plugin.

The fix is a small JavaScript snippet that removes that attribute after each HUSKY filter/search update. Add this to your theme's functions.php or a custom JS file:

 add_action('wp_footer', function() {
    ?>
    <script>
    jQuery(document).on('woof_ajax_done', function() {
        jQuery('.products a').removeAttr('target');
    });
    </script>
    <?php
});
If you are using a page builder or your theme has its own product card template, the selector .products a may need to be adjusted to match your actual product link elements.

For further support place please actual purchase code of the plugin into the private area of this ticket:
https://share.pluginus.net/image/i20230222134241.png
https://share.pluginus.net/image/i20230222134615.png
https://share.pluginus.net/image/i20230222134511.png