Home > database >  How to open wordpress post in new tab
How to open wordpress post in new tab

Time:04-21

I'm using Hoot Business Theme, i can't find where I can insert target_blank" there is no loop.php in this theme. Is there any other way to open wordpress post in new tab?

CodePudding user response:

The simplest way to achieve this without messing about in your template files is with jQuery:

$('a.addSomethingBlogSpecificHere').attr('target','_blank');

CodePudding user response:

You need to add target="_blank" in anchor tag HTML like :

<a href="#"  target="_blank" > Label Name </a>
  • Related