Home › Forums › ASE Support › Overriding components – clarification
Tagged: ASE, customize component, Jorgen
- This topic has 5 replies, 2 voices, and was last updated 5 years, 1 month ago by
Michael Beil.
-
AuthorPosts
-
Participant
Hi,
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
thanks!
ChrisParticipantHi again – it’s been over a week with no reply. We would really appreciate some assistance on this.
KeymasterHi Chris,
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?
-
AuthorPosts