When writing a post or page in the post editor (not the Visual editor but the HTML editor) and clicking on the "link" button, a popup appears with http:// already prefilled.

Is there a way to change this default text?

For example, since I usually link internally to my own site I would want to use my base URL because then I could either quickly type the rest of the URL, or just overwrite it if I was hyperlinking somewhere else.


I swear I saw a blog article on how to do this but I cannot locate it through searching the web.

Thanks in advance for any help.

1 Answer 1


You could try hacking into wp-includes/js/tinymce/plugins/wplink/js/wplink.js

and change:

  • if(!i.href||i.href=="http://") (two times)
  • b.url.val("http://
  • Is there any way to do it by editing quicktags.js? I went through the file but it wasn't obvious.
    – JimmyPena
    Nov 30, 2011 at 16:31
  • i don't think quicktags.js has anything to do with this. Editing wplink.js shouldn't be so hard, though: just do find&replace 'http://' to 'myurl.com' 3 times and you're done...
    – ptriek
    Nov 30, 2011 at 16:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.