• I would like to link specific images to specific URLs. Its only possible to link the caption, but usually people will click the image which can only lead to the media file or the attachment page.

    Fx. I want to link to a product so I need to be able to link the images to specific products.

    Congrats on he award. I can see blocks evolving in 2019, so you’re going to be busy 🙂

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Rich Tabor

    (@richtabor)

    Hi @ssohl,

    You mean to set a custom link on a per-image basis? Instead of the defined Link To settings (screenshot)?

    Thread Starter Søren Sohl

    (@ssohl)

    Yes setting a custom link for each image, then I could link to my products or another WP page.

    Plugin Author Rich Tabor

    (@richtabor)

    Mhmm, that’ll be a bit difficult to achieve, but I’ll look into it and see if I can do some sort of granular control like that for each image.

    Thanks for the feedback!

    Thread Starter Søren Sohl

    (@ssohl)

    Thanks I think it will be useful for many and a lot of galleries have this function. The only way I could achieve something I wanted was using the Masonry style which allows me to make a caption for each image which can be linked. It would also be cool if it was possible to make a bigger caption than the small font today.

    image

    • This reply was modified 5 years, 4 months ago by Søren Sohl.
    • This reply was modified 5 years, 4 months ago by Søren Sohl.
    • This reply was modified 5 years, 4 months ago by Søren Sohl.
    Plugin Author Rich Tabor

    (@richtabor)

    I’ll see what I can do @ssohl. Caption sizes are actually defined by the theme (as it’s presentation based) but if you’d like to override it, add this gist of custom CSS via your included child theme or the Additional CSS module Customizer (WP Dashboard > Appearance > Customize).

    You can change the pixel size as well.

    That should do the trick!

    Thread Starter Søren Sohl

    (@ssohl)

    I’ve tried your gist proposal but it didn’t change anything:

    .blockgallery--caption {
      font-size: 14px;
    }

    This did work though, but it might not in the future?

    li.blocks-gallery-item figure figcaption {
        font-size: 20px;
    }
    • This reply was modified 5 years, 4 months ago by Søren Sohl.
    Thread Starter Søren Sohl

    (@ssohl)

    Just had an idea – I and probably others – would like to create a product gallery.

    Wouldn’t it be possible to choose some post id’s like Posts or Products and then it links to this post id’s page?

    I’m no developer but this way it would be possible to make a gallery for either pages, posts, products or even categories.

    Take a look at https://storefrontblocks.com – he makes some product related blocks but I like yours more.

    Plugin Author Rich Tabor

    (@richtabor)

    Hi @ssohl, it’s likely your theme is overriding the caption sizes with pretty specific styling. Your second snippet would continue to work for the foreseeable future of the plugin (as I’m not planning on changing block markup).

    Plugin Author Rich Tabor

    (@richtabor)

    I’m working on figuring out a way to add custom links to individual gallery items, which you could then use to link gallery items to specific product pages.

    I don’t foresee having the blocks catch pages/posts/categories and pulling their featured image — as then you wouldn’t be able to change those images. The render would be whatever is uploaded to those post types. I don’t particularly like the disassociation between the block and the content/images, as that’s where Gutenberg blocks shine — by merging content and display.

    Having a separate product block to pull in WooCommerce products is much more interesting; though it’d likely be a while before I put resources in that direction.

    Interesting ideas though!

    Individual URL links on the individual images in the gallery is something many users can use and would applaud. I mentioned that to you, Rich, in another message.

    Plugin Author Rich Tabor

    (@richtabor)

    Thanks @ludwigkeck, I have something in motion to add that particular functionality. 👍

    This is something I need. Can’t use your gallery without it. Any chance you’ve figured it out yet?

    @richtabor Hi Rich, I was going to start a new thread about this but I can see you’re working on it. Would be really great to add links to individual images. Hope it’s still coming!

    Plugin Author Rich Tabor

    (@richtabor)

    @jdwebsite Yup, it’s coming!

    I follow the thread… I’m very interested in individual URL links!!
    Thank you

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Individual links for images’ is closed to new replies.