Opening links in new window: Searched extensively, still no solution

  • Author
    Posts
  • #872304

    tedcleaver
    Member

    I recently started using WordPress and love it. Links are giving some trouble though, just simple links in posts.

    When I use the link option in HTML-edit mode, after pasting a URL and filling in the link text, I get this code:
    – it doesn’t work, nothing appears.
    my blog – Performing this edit makes it work.

    When I check the open link in new window option, I get this line of code:

    I haven’t figured out yet how to make this work.

    Can someone help me with this? How come the default code lines don’t work?

    PS I’ve read elsewhere that it’s bad manners to have links open in new windows (never thought about that before, but it makes sense). However, there are instances where this is acceptable. I’m building a private blog with friends, and we have a homepage from which we need to open several links at once.

    The blog I need help with is tedcleaver.wordpress.com.

    #872472

    tedcleaver
    Member

    Lol. okay, the code lines again with a random error to break their functionality

    1)
    <re href=”http://tedcleaver.wordpress.com” title=”my blog”></re>
    2)
    <re href=”http://tedcleaver.wordpress.com”>my blog</re>
    3)
    <re href=”http://tedcleaver.wordpress.com” title=”my blog” target=”_blank”></re>

    #872477

    justpi
    Member

    a) To display code here, you need to enclose it in backticks (see below reply field).

    b) The link title isn’t the visible clickable text, it’s the (optional) info that shows up when you hover over the clickable text.

    c) To create a link in either the visual or the HTML editor, you type the clickable text first, highlight it, click the link tool, paste the URL, check the option “Open link in a new window/tab”, click Add Link.

    b) If you wish to use code directly, the model is:
    <a href="URL HERE" target="_blank">TEXT HERE</a>

    #872488

    tedcleaver
    Member

    It all makes sense now. Thank you for the explanation, problem solved.

    #872504

    justpi
    Member

    You’re welcome.

The topic ‘Opening links in new window: Searched extensively, still no solution’ is closed to new replies.