Open Sidebar Image Links in New Tab?

  • Hi! I’ve just created a series of linked images using the Sidebar Image Widget, but I’d like to set these so that the links automatically open in a new tab. I’ve tried using the target=_blank code in the link url, but that just ends up opening a blank white page in the original tab. Any advice?

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

  • Images
    You upload the image, click File URL, insert it, then click on the image (in the visual editor), click on the edit button (mountain icon), click “Advanced Settings”, scroll down to “Target”, tick “Open link in a new window”, click Update, click Update Post.

    Or, you upload the image, click File URL, insert it, then in the html editor add this to the image code (after href… etc… jpg, with a space before it):
    target=”_blank”

    In the html editor (as well as in text widgets), instead of this:
    TEXT HERE
    you write this:
    TEXT HERE

  • Sorry :(

    In the html editor (as well as in text widgets), instead of this:
    <a href="URL HERE">TEXT HERE</a>
    you write this:
    <a href="URL HERE" target="_blank">TEXT HERE</a>

  • Thanks for your advice, timethief, but unfortunately, that doesn’t seem to work in the sidebar image widgets–because they don’t have a place for html. The widget automatically converts the link url you type in into a hyperlink on the image you upload. So when I try to add the target=_”blank” bit, it nullifies the link because it can’t recognize the html.

    Anyone know how to change this setting within the sidebar image widget? Or is there a way to edit existing sidebar images in the visual editor that I’m missing? Thanks!

  • The topic ‘Open Sidebar Image Links in New Tab?’ is closed to new replies.