November 25, 2015 at 8:04 pm
We need to do some customisations to one of the gallery views – specifically we need a switch to disable the lightbox on the “grid” layout, and to change the way captions display. The documentation mentions that the components can be overridden but I’m at a loss as to how this is accomplished.
The dev page says “Copy the entire shortcode function (including if statement) of whichever component you want to modify, and paste it into your themes functions.php file. It will now use yours instead.”
I’m assuming that in this context “component” refers to things like the gallery. What I’m not clear is exactly what “shortcode function” we should be copying – it all seems to be bound up in multiple classes in the “aesop-story-engine” plugin. Am I missing something obvious?
We’re using the “Jorgen” theme
ChrisNovember 29, 2015 at 9:37 pm
This reply has been marked as private.December 3, 2015 at 11:44 pm
Hi again – it’s been over a week with no reply. We would really appreciate some assistance on this.December 4, 2015 at 12:20 amKeymaster
Sorry Chris, I’ll check on this in the morning straight away.December 4, 2015 at 12:22 am
thanks Michael – much appreciatedDecember 4, 2015 at 6:25 pmKeymaster
For the gallery class you can see everything here: https://github.com/hyunsupul/aesop-core/blob/master/public/includes/components/component-gallery.php
And for the admin settings: https://github.com/hyunsupul/aesop-core/blob/master/public/includes/components/component-gallery.php
Forthe options that are available in each gallery you can go here: https://github.com/hyunsupul/aesop-core/blob/master/admin/includes/components/component-gallery.php#L223-L310 and add the lightbox option you want included in the grid gallery as seen in the photoset gallery.
b) change what field value is used for the caption
What field value are you wanting to use?