Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    It appears those instructions are meant to update your theme. Your theme probably doesn’t have a file in /js/jethack.js, which I assume means you need to create that JavaScript file and add it to your theme files.

    You can also modify the URL of the image via the text editor to add target="_blank" to force it to open in a new window.

    For example, change:

    <img src="http://example.com/testimage.jpg">

    …to…

    <img src="http://example.com/testimage.jpg" target ="_blank">

    I hope that clarifies things!

    Thread Starter EcoVitalis

    (@ecovitalis)

    Good afternoon Carolyn:

    I think I expressed myself badly. What I meant was that I want to open the link in a new window.

    Attached link of what I want it to open in a new window

    Thanks in advance

    Regards, Marina

    http://www.casimages.es/i/14070806455980248.png.html

    Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    Thanks for clarifying! It’s not possible to have an image open in a new browser window using the Image Widget. You would instead need to use the Text Widget.

    Here’s an example of some code that would insert an image, add the link, and make it open in a new browser window.

    <a href="WEBPAGE URL HERE" target="_blank"><img src="IMAGE URL HERE" alt="DESCRIPTIVE TEXT HERE" /></a>

    Paste that into the Text Widget, then change the values to the relevant URLs. You should be all set!

    Let me know if you have any questions.

    Thread Starter EcoVitalis

    (@ecovitalis)

    So … there’s one thing I don´t understand. Why Link to Image Jetpack included?. What sense does include a link to a website, if you can´t provide the functionality that link open in a new window?. Honestly, I think it’s a bit absurd. As I see absurd having to use “text widget” with code to do that. Especially if there is a link to a website in Image Jetpack. I guess with a simple change in the Jetpack code, that could be included.

    Why, then, what role has the link that is included in Image Jetpack?

    Regards, Marina.

    Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    We made the Image Widget to allow people to easily add images to widget areas to their themes without needing to know HTML or how to customize their theme files.

    But since we’ve had this request before, we already have opened up an issue in our GitHub repository to add the functionality to open the image link in a new tab or window in the Image Widget:
    https://github.com/Automattic/jetpack/pull/643

    It hasn’t been merged into Jetpack yet – so keep an eye on that issue for future updates!

    I hope that helps!

    Thread Starter EcoVitalis

    (@ecovitalis)

    Well … thank you very much! I think that functionality can be very helpful.

    Regards, Marina.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can I get the Jetpack Image plugin to open links in a new window?’ is closed to new replies.