How do I make the link open in a new browser window when I click the Read More button instead of the current one? What php file should I change?
Hi there
Where exactly do you want to do that?
You can use this plugin to get the name of the file being used to render the page:
Regards
I have Explore button. It leads to another site. When I click it, the new site opens in the same tab. I want it to open in a new tab when I click it.
target="_blank"
Only I don’t know exactly where to put it in the php file.
Hi there
Its possible, you can use something like this:
Another example:
if you provide a link I can generate custom code for you
Please do
Hi
This code can do the trick:
jQuery(document).ready(function( $ ) {
$("a.btn.btn-lg.btn-filled").attr("target","_blank");
});
there are several methods to add Jquery to WordPress, please follow this guide:
I’m not a programmer, so I’m not quite clear unfortunately. I need to write something in the code “function.php”, but I do not understand where exactly you need to write your code.
Thank you.
added this code to footer and all works.
Thank you
Hi there
Ok, that’s nice to hear
Let me know if you need anything else