I have used following shortcodes in the Home page to display set of products :-
[products limit="15" orderby="menu_order" columns="5" category="shirt, shoe"]
However when any product image is clicked on the Home page, the specific link is opened on the same tab. I would like to open that link in a separate tab. How to achieve this?
Thanks!
Note: I am using Oceanwp as my active theme
2
Answers
Since I am using Oceanwp theme, I have to modify in different places than what is suggested by @Diego. But his answer gives me the clue for finding the solution. This is the modification I did to make it work for Oceanwp.
Funny, i just had the same issue few days ago. Here’s how i’ve solved it:
Tested and works. You can just paste this into your functions.php or if you’ve made a custom plugin just include this at the very beginning.
You might need to add "is_home()" or "is_front_page()" to make it hit just the home page and not the whole site