• In the comment posting window, there is a button for creating a “link”: highlight the text, click the button, a popup window appears in which you paste the URL, click OK, and then the HTML for an active link appears in the post text.

    HOWEVER, it is of the “TEXT” format, which takes readers to a new URL in the same window if clicked on. I want the “Link” button to insert a “TEXT code, so that it opens a new window for the linked-to page, and leaves the original window unchanged.

    How can I change the template/format/whatever in WordPress 2.7 to have this be the case in all postings all the time? (Or does it depend on the theme? I should think not. I’d like it to work that way [inserting target=”_blank”] whatever the theme.)

    I presume I have to change one or more php files and then re-upload them. Which files, and where exactly in those files do I make the changes? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter qpqpqp

    (@qpqpqp)

    Hmmmm, no responses yet. This should be a very simple question! Maybe I didn’t phrase it right. Let me try again:

    In WordPress 2.7, how can I make all outgoing links within posts always open a new window? Currently, the “link” command in the body-of-the-post text box creates code that makes links not open a new window, but takes readers away from the current page to the external link page, within the same existing window. To return to continue reading my post, they’d have to click the “back” button, rather than simply close the new window.

    As far as I can tell, this is not theme-dependent. Or is it? If not, how can I change the template to always make links that open in a new window?

    I think the answer to your question is finally here :-):
    https://blog.ffff.ca/2008/12/28/changing-default-link-target-in-wordpress/

    In WordPress v2.8 the link.js file is in the wp-includes/js/tinymce/theme/advanced/js directory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change the default “Link” command in posts to include a target=”_blank”?’ is closed to new replies.