WordPress.org

Support

Support » How-To and Troubleshooting » WordPress is forcing target="_blank"

WordPress is forcing target="_blank"

  • Im trying to use some interal links ie:

    <a name="top"></a>
    <a href="#top">Top of Page</a>

    to link to segments of my page and for some reason wordpress is forcing the links to have target=”_blank” within the code, ive tried adding target=”_self” to overwrite this but wordpress still inserts _blank, ive used these kind of links many times before (including on this site) but I have no idea why this isnt working.

    Any help would be appreciated.
    Thanks
    Nick

Viewing 3 replies - 1 through 3 (of 3 total)
  • Bump. Nobody come across this before?

    Please Help.

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Not sure if this helps, but i changed my base target to _self.

    Similar to this: Link

    Put this inside the <head> section of your Theme’s template header.php file:

    <base target=”_self” />

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress is forcing target="_blank"’ is closed to new replies.
Skip to toolbar