1

When Links in the Page/Posts in my website are clicked, they correctly open in a new tab. But when the Anchor Texts or Page Jumps targetted to Top or any specific spot in the Page is clicked, that is also opening in a new tab.This may be because, I have inserted the Code '' in the Head using the Plugin Insert Headers and Footers, (after reading some tips like this) How to prevent the Page Jump Links from opening in a new Tab. Thanks for any help

J M Das
  • 13
  • 1
  • 5

1 Answers1

0

Take a look at the target attribute for the <a> tag:

<a target="_self" href="">MyLink</a> = Open in the same tab window

<a target="_blank" href="">MyLink</a> = Open in new tab or window

If this doesn't work for you, then there's probably a bug in the plugin you're using... You probably either want to fix it or find another solution that suits your needs.

nmg49
  • 1,356
  • 1
  • 11
  • 28
  • Thanks for the Reply. My question was not correctly presented by me. I have inserted the Code '' in the Head using the Plugin Insert Headers and Footer, to enable opening the links in the post/page in a new tab. Now I need the Page Jump Links to open in the same tab, at the specific targetted spot, without affecting the code that enables to open other Links in the new tab. Thanks – J M Das Sep 11 '18 at 15:26
  • The target tag can go on the individual link. I've updated my answer to further clarify this. – nmg49 Sep 11 '18 at 16:48