After Ajax Product Search- Product Name can’t be copied
-
When I search by a name or word, the matching results are showing properly, but I can’t copy the title/product name (single or multiple)from the Desktop/Laptop/PC, but from mobile, that can be done. That wasn’t before like that. Previously, that was working fine.
For reference, I added a screenshot. Please have a look to better understand.
Attachments:
You must be
logged in to view attached files.
Hello
Thank you for your message. We have recently updated the Ajax Product Search to enable opening product links in a new tab directly from the search results. As a result, the clickable link currently overlays the product title, which prevents copying the text on desktop devices. This behavior is intentional to improve usability but does affect text selection.
Regards
Hello,
Thank you for your response.
I understand the new Ajax product search results.
But, we need that functionality to select & copy, product name/title with price from both Mobile and Desktop.
Could you please help us with this?
Thanks.
Hello,
Unfortunately, we are not able to revert these changes in our theme. We will consider this as a feature request for our future updates.
Kind Regards
Hello,
Alright, Thanks for considering my issue.
But it’s totally unpredictable when the next update will be released. Actually, we can’t wait till then. Because we frequently use this, in a single day we had to copy hundreds of thousands of times.
So, it’s really painful for us.
Could you please send us a custom code to achieve this? And give us instructions to apply it.
Please consider it.
Thanks.
Hello,
We tested a custom solution but it may work only if we remove the link from the product and make it for the title only. Here is a video https://monosnap.com/file/IjYTa3bH7uDw6oRlCsrQQd0tjO1eqw
Kind Regards
Hello,
I’ve seen the video. It’s okay for now.
But, we need to copy with the “Price” as well along with the title.
Please share the code according to this solution.
Thanks
Try to add the following PHP code snippet to the child theme’s functions.php file to do this. Also, put the following file in the child theme root directory https://limewire.com/d/JcgmX#g4xChLxPKH
add_filter( 'script_loader_src', function ($src, $handle) {
if ($handle === 'wd-ajax-search') {
$src = get_stylesheet_directory_uri() . '/ajaxSearch.js';
}
return $src;
}, 10, 2 );
Alright.
Thank You.
Have a great day 🙂
You are always welcome. Feel free to contact us if you have any further questions.
The topic ‘After Ajax Product Search- Product Name can’t be copied’ is closed to new replies.