BuddyDev

Search

[Resolved] Turn off Click Through on Image

Tagged: , ,


  • Participant
    Level: Initiated
    Posts: 18
    Jemma Tates on #3972

    Hi Brajesh, brilliant plugin working brilliantly for me! Is it possible to turn off the functionality so that the user can not click on the image on the gallery – so when the user is on the pop up gallery view finder there is no click through function on the image.

    I hope this makes sense?

    Thanks Jem


  • Participant
    Level: Initiated
    Posts: 18
    Jemma Tates on #4112

    Hi Brajesh any news on this? So for the shortcode Lightbox currently the image clicks to the users gallery but I am not using the static galleries so would like the image to not link anywhere on the Lightbox pop up is this possible?

    You can see an example of what I mean here: http://mycoparenting.org/members/gemspeht/

    Thanks for any help!


  • Keymaster
    Level: Guru
    (BuddyDev Team)
    Posts: 879
    Ravi on #4206

    Hi Jemma,

    Sorry for the late reply. This can be done easily. Just copy the ‘lightbox-comment’ template to your current theme. The path would be

    “wp-content/plugins/mediapress/templates/mediapress/default/gallery/media/views/lightbox-comment.php”

    to in your current theme

    “mediapress/default/gallery/media/views/lightbox-comment.php”

    and replace the following section.

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

    to

    
    <img src="<?php mpp_media_src() ;?>" alt="<?php echo esc_attr( mpp_get_media_title() ) ;?>" class="mpp-lightbox-single-media"/>
    
    

    Please let me know if it works for you or not.

    Thank You
    Ravi


  • Participant
    Level: Initiated
    Posts: 18
    Jemma Tates on #4231

    Yes! That’s PERFECT!! Thank you !!


  • Keymaster
    Level: Guru
    (BuddyDev Team)
    Posts: 879
    Ravi on #4256

    Hi Jemma,

    Thank You for your acknowledgement. I am glad that I could help.

    Thank You
    Ravi

You must be logged in to reply to this topic.

This topic is: resolved
Subscribe