• I searched but couldn’t find the solution.
    I want all links in the body of a post to open in a new window. I used the <basetarget_”blank> in the head but that causes the comments links to also open in a new window, and doesn’t allow a coment to be submitted (it just opens a new comment window when you click submit). How can I make all links open in a new window, but allow the comments, etc. to stay in the current window?
    Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • you could edit the quicktags file so when you press the link button target=’_blank’ is added to the link

    Thread Starter bnault

    (@bnault)

    Thanks for the help.
    I looked at the quicktags.php and quicktags.js files and I can’t find where to add target=”_blank”.
    Could you tell me what and where I need to add?

    in quicktags.js on line 348

    you can add it there

    Thread Starter bnault

    (@bnault)

    Sorry, I don’t have any Javascript experience, so I’m pretty lost here. I appreciate your help.
    Can you copy and paste the correct line?

    I could, but the board screws everythign up…

    Thread Starter bnault

    (@bnault)

    could you email it here: bradnault@gmail.com

    done and done

    Thread Starter bnault

    (@bnault)

    Thanks for the help but I can’t get it to work.

    I inserted the code over the existing tag in the quicklinks.js file, but no good.

    I tried a few things, but it still generates the link without the “target_’blank'”.

    Thread Starter bnault

    (@bnault)

    I figured it out after much experimentation. This is what worked for me:

    i guess i can’t post it here..

    Lionheart

    (@lionheart)

    I would like this in the posts aswell as in the sidebar links.
    Can I do the same as you guys? I don’t want the pages in the sidebar to open in a new windows, just the links and in the posts.
    I can’t find the .js you are talking about.

    Lionheart

    (@lionheart)

    I found the quicktag.js but will it do what I want stated above?

    philpeeps

    (@philpeeps)

    for the sidebar links, just edit the link in the admina panel to open in _blank

    here’s what line 384 in quicktags.js currently shows:

    myValue = ‘<img src=”‘

    so where abouts do i put in target=”_blank” to get this to work?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Open links in storycontent in new window’ is closed to new replies.