I’m trying to alter the default gallery behavior, depending on the membership level the user has. For example, if they are a free member, they’ll only be able to see the first 5 images of any given photo gallery.
While I already have the logic worked out, I’m struggling to find documentation on customizing the template files (so I can add my custom logic). How exactly would I go about that?
Please copy plugin/mediapress/templates/mediapress/default/gallery/views/grid-photo.php to your theme/mediapress/default/gallery/views/grid-photo.php and modify it.
The loop you see there is exactly same as a post loop(extended).
It is not used for lightbox though. Light box, please see “mediapress/core/ajax/class-mpp-ajax-lightbox-helper.php”
You must be logged in to reply to this topic.