wordpresspage-jump

How to prevent Targetted Jump Links from opening in a new Tab?


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


Solution

  • 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.