WordPress.org

Ready to get started?Download WordPress

Forums

external links - how to change code inserted? (4 posts)

  1. cmiwebstudio
    Member
    Posted 4 years ago #

    I want to be able to add links in wordpress with the option of them being external, however, the current system adds target="_blank" which is not valid xhtml strict code. I would prefer it inserted onclick="window.open(this.href);return false;" which is valid code. How can I modify this function?

  2. alism
    Member
    Posted 4 years ago #

  3. cmiwebstudio
    Member
    Posted 4 years ago #

    that's cool, but I don't want to have the server make another call to load the javascript that swaps out the invalid code on the fly,... i'd rather just have wordpress insert the correct code in the admin. anyone know what file I can modify?

  4. cmiwebstudio
    Member
    Posted 4 years ago #

    anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic