WordPress.org

Ready to get started?Download WordPress

Forums

WordPress is forcing target="_blank" (4 posts)

  1. Nick McBurney
    Member
    Posted 2 years ago #

    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

  2. Nick McBurney
    Member
    Posted 2 years ago #

    Bump. Nobody come across this before?

    Please Help.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  4. TheBluePill
    Member
    Posted 1 year ago #

    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" />

Topic Closed

This topic has been closed to new replies.

About this Topic