Home Forums ASE Support Overriding components – clarification

This topic is: not resolved
Viewing 6 posts – 1 through 6 (of 6 total)
  • Author

    Posts

  • #10726

    Reply

    Chris

    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!
    Chris

    #10806

    Reply

    Chris

    Participant

    This reply has been marked as private.

    #10911

    Reply

    Chris

    Participant

    Hi again – it’s been over a week with no reply. We would really appreciate some assistance on this.

    #10913

    Reply

    Michael Beil

    Keymaster

    Sorry Chris, I’ll check on this in the morning straight away.

    #10914

    Reply

    Chris

    Participant

    thanks Michael – much appreciated

    #10929

    Reply

    Michael Beil

    Keymaster

    Hi 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?

Viewing 6 posts – 1 through 6 (of 6 total)
Reply To: Overriding components – clarification