BuddyDev

Search

[Resolved] Click image in Gallery Lightbox – change to navigate Next?

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 42
    Shannon Belletti on #29159

    When viewing a gallery in the default Lightbox, is it possible to change the action on clicking the image to navigate to the next image rather than exiting the Lightbox and going to the single image page?

    If not, is there a way to simply remove the ability to click on the image? Most of our members will be viewing/commenting on entire galleries so once in the Lightbox, they won’t need to go to the single image page.

    Thanks! Really love all the work (and awesome support) you are providing!

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on #29164

    Hi Shannon

    @ravisharma
    has fixed the changing of the cover. Isn’t it reflecting new image now?

    Also, he has added a css class to the media which is set as cover, Please try using inspector to check. You can hilight based on that class.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 42
    Shannon Belletti on #29251

    I think your reply is for one of my other topics. This one refers to setting the Gallery Cover Image in the View screen… I tried the update and it’s not working. I don’t see the .css class in Inspector either. 🙁

    Any updates to this topic (Changing main image click function in Lightbox view)?

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on #29256

    Opps, sorry.

    We won’t be able to add next/previous on click on image bt we can help with disabling the linking.

    There are 2 ways to do it
    1. Template override of the lightbox image
    2. Or adding an option in the plugin

    To override templa,e please copy wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox/photo.php to your-theme/mediapress/default/gallery/media/views/lightbox/photo.php

    and change this line

    
    <a href="<?php mpp_media_permalink(); ?>" title="<?php echo esc_attr( mpp_get_media_title() ); ?>" class="mpp-lightbox-single-photo">
    
        <img src="<?php mpp_media_src( mpp_get_selected_lightbox_media_size() ); ?>" alt="<?php echo esc_attr( mpp_get_media_title() ); ?>" />
    </a>
    

    to

    
     <img src="<?php mpp_media_src( mpp_get_selected_lightbox_media_size() ); ?>" alt="<?php echo esc_attr( mpp_get_media_title() ); ?>" />
    
    

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 42
    Shannon Belletti on #29261

    Navigation would be nice, but this will work in the meantime. Thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on #29281

    Thank you.

The topic ‘ [Resolved] Click image in Gallery Lightbox – change to navigate Next?’ is closed to new replies.

This topic is: resolved