Trouble Using the "Link" Icon

  • Unknown's avatar

    I am using the new editor.

    When I try to insert a link to an external web site within a post using the link icon in the editor, nothing appears. I can create the link in the html view [only], but when I save and preview, it disappears. Gone.

    Now, I can manually type one in, no problem, but using the icon for simplicity seems to be a no-go!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Could you briefly list the steps you take while trying to create a link using the “Insert/edit link” tool? I shouldn’t matter whether you are creating the links in Visual or Text mode of an editor. The same module is used.

  • Unknown's avatar

    – I put the cursor where I want the link
    – I click on the link icon
    – I fill in the pop-up fields & select “open link in a new window/tab”
    – Click add link — at this point, if I am viewing under “Visual,” nothing appears; under “HTML,” the code is visible
    – Click Save
    – Click Update
    – Click Preview — nothing there
    – When I go back to edit —> HTML … code is gone

    This occurs in IE11 & latest Firefox

    TEST: My Site

    I am trying a test here. I should note that the process is a bit different here than on WordPress blogs and probably will work as it looks like the same process as on my own forums. Here goes …

  • Unknown's avatar

    It worked. Here is what is generated on my WordPress blog:

  • Unknown's avatar

    Hmmm … blank …

    Here it is without the < : a href=”http://www.mohicanpress.com/” title=”My Site” target=”_blank”>

  • Unknown's avatar

    The target part is included in the generated code and appears to be the culprit.

  • Unknown's avatar

    So the “Insert/edit link” pop up module simply doesn’t ever appear when your in Visual mode? I wonder if this effect is due to your browser privacy settings, the “accept cookies” settings perhaps?

  • Unknown's avatar

    “your” = you’re, sorry

  • Unknown's avatar

    No, the module DOES appear. It just looks different than the one here on this forum. The Module appears, but the input does not in Visual mode. In HTML mode the input also DOES appear, but vanishes once you Preview, or even if you just switch around back to Visual.

  • Unknown's avatar

    I don’t want to get into details of your browser privacy settings. Seems a bit invasive don’t you think? So I think the best thing to do would be to summon Staff to the case. I’ll tag the topic for Staff attention.

  • Unknown's avatar

    Great … thank you!

  • Unknown's avatar

    What exact anchor text are you using for the link? You have to select either text or an image, THEN click the link icon, put in the link, and carry on as above. The “blank” thing just means “open in a new window or tab” and isn’t the culprit here.

  • Unknown's avatar

    I agree with raincoaster that the target=”_blank” shouldn’t be a problem. However, there is a difference between the code you say is generated with the Insert Link tool (Have I got that right?) on your website and the text code that is generated in my page editor with the same tool.

    Yours — (open tag)a href=”http://www.mohicanpress.com/” title=”My Site” target=”_blank”(close tag)

    Mine — (open tag)a title=”My Site” href=”http://www.mohicanpress.com/” target=”_blank”(close tag)

    The simplest form, without title or target — (open tag)a href=”http://www.mohicanpress.com”>My Site</a(close tag)

    The one I’ve labeled “Yours” is invisible on my page. Mine and the basic one without title or target both form normal working links.

  • Unknown's avatar

    Both the title (after “_blank”) and the “</a” before the close tag are being stripped out of the first two codes in my previous post.

    I’m having trouble duplicating the result I described above because if I move the title=”My Site” part from where it appears in mine to where it appears in yours, WordPress automatically moves it back, though sometimes it stays in the place I put it and the link is visible. The link now appears in either case. Perhaps that wasn’t the reason for the different results.

  • Unknown's avatar

    Just post code between CODE tags. It’s right there above the comment box here.

  • Unknown's avatar

    Thanks raincoaster. Sometimes I miss the most obvious things.

    I’d asked about how to insert code here several times previously and always got no response. So many times I had code stripped and no one said a word until now.

  • Unknown's avatar

    You can either use the CODE button or use the backtick, which is usually on the same key as the ~. Hit it before the section of code, then again after the section of code.
    that does this

  • Unknown's avatar

    Yeah. That’s what I’ve been looking for. I kept asking people how to do that.
    Thanks again.

  • Unknown's avatar

    Does not work I put a code tag before it and an end code after it. I can see it in HTML view. I click on SAVE [tried UPDATE, too] If I switch then to VISUAL view there is a blank space. Clicking back to HTML and all that remains are the code tags. That’s it. Even after it was saved. I don’t know, but I’d have to think the link tool does not work.

    Manually entering it as musicdoc1 stated above – (open tag)a href=”http://www.mohicanpress.com”>My Site</a(close tag) – does the trick.

  • Unknown's avatar

    @ richfed,
    I was only concerned with the effect that the code button (or tag pair) has on code inserted here. I’m going to try it below. It doesn’t appear to work the same way in a post editor.

    Manually entering it as musicdoc1 stated above – (open tag)a href=”http://www.mohicanpress.com”>My Site</a(close tag) – does the trick.

    Really? That’s nice.

    _______________________________

    So what I tried to say above is that the code that your Post Editor Insert Link tool creates is evidently

    <a href="http://www.mohicanpress.com" title="My Site" target="_blank">My Site</a>

    whereas my Insert Link tool creates

    <a title="My Site" href="http://www.mohicanpress.com" target="_blank">My Site</a>

    the only difference being where title=”My Site” appears. I thought your code was failing to create a link on my test page, but that was probably due to my copying the partially stripped code given in the Feb 20, 2015, 8:00 PM post.

    Presently, either of the above codes create links on my test page, though the first will transform into the second just by switching from one editor mode to another and back (text to visual to text).

    The issue could be limited to the Chateau theme, or again it might be browser-related.

  • The topic ‘Trouble Using the "Link" Icon’ is closed to new replies.