• Resolved JoeMD

    (@joemd)


    Firstly, let me say I LOVE this plugin. It’s made my life soooo much easier! So thank you for it.

    Now, to my issue; I’ve like to add a small gallery to my sidebar via the Gallery (Jetpack) widget. However, there doesn’t seem to be any option to have the image link to the URL dictated by the gallery link. I tried all the options the widget provides (Like to: Carousel/ Attachment Page/ Media File) but none product the desired effect.

    Any suggestions on how I might get around this?

    Cheers.

    https://www.chroniclechamber.com

    https://www.ads-software.com/plugins/wp-gallery-custom-links/

Viewing 4 replies - 1 through 4 (of 4 total)
  • WP Gallery Custom Links only works through the [gallery] shortcode in content. The Jetpack gallery widget doesn’t appear to utilize that shortcode, so there’s not a way for WP Gallery Custom Links to hook into it.

    BUT, if you create a text widget and drop a [gallery] shortcode in there, the custom links should work on it. You may need to create the gallery shortcode through a page editor, and then copy/paste it into the widgets section to get all the options, etc. set up the way you want them. You may also need to add the following to your functions.php file to make sure shortcodes can run in a text widget:

    add_filter('widget_text', 'do_shortcode');

    Hopefully this can be a workaround for you.

    As a side note, with the “Carousel” option, Jetpack doesn’t seem to put links around those images, and all that content is generated by Jetpack outside of WordPress, so there’s not really any way for WP Gallery Custom Links to hook into it to modify the non-existent links, so the “Carousel” option would not work regardless of whether the gallery was in a page or a sidebar widget.

    Thread Starter JoeMD

    (@joemd)

    Thanks very much. I’ll give it a try and let you know how I get on.

    Thread Starter JoeMD

    (@joemd)

    Worked! Brilliant! Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Linking from Gallery (Jetpack) Widget’ is closed to new replies.