• Resolved ighulme

    (@ighulme)


    Hi, thanks for a great plugin.

    I was having trouble with the plugin appearing to break the DIVI gallery lightbox (After first click on the lightbox, the other images disappear off screen).
    So I targeted the icons only on the gallery thumbnails.
    However, on mobile, the icons only appear on click, which also opens the lightbox image over the top of it.

    Is it possible to always show the icons on mobile, so that either the icon or the thumbnail can be clicked?

    Many thanks,
    Ian

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    Hi Ian, thanks for your kind words.

    With AddToAny image sharing you can set the [currently undocumented] showOn: 'visible' to always display the share button(s) over visible images like so:

    a2a_config.overlays.push({
        showOn: 'visible',
        useImage: true,
        services: [ 'email', ],
        target: '.et_pb_gallery_image.portrait a img',
    });

    Right now there’s no built-in way to delineate between mobile/desktop with this option, but you could implement it conditionally by trying to detect a mobile device. Let me know if you need help with that.

    Thread Starter ighulme

    (@ighulme)

    Hi, thanks so much for your reply – showing the icons all the time works fine.
    Thanks again for a great plugin!

    Btw, are you aware of the problem with the DIVI gallery lightbox images breaking? It would be great to be able to have the icons on the lightbox images too, though the above solution works fine for me at present.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Always show icons on mobile images’ is closed to new replies.