Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1166525

    Hi. I have customized enfold/config-templatebuilder/avia-shortcodes/ac-helper-masonryx.php so that some custom fields are displayed.

    When I move the customized file to my child theme, it is not used. The default version is used.

    How do I fix this?

    #1167650

    Hey Nancy,

    Thank you for the inquiry.

    You have to create a new path in the child theme where the theme will load the shortcodes from.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Add the snippet in the functions.php file, then create a folder called shortcodes inside the child theme directory. You will then be able to add the masonry script inside that folder to override the default one or create new builder elements when necessary.

    Best regards,
    Ismael

    #1188900

    Hi, I’m also interested in customizing the av-helper-masonry.php file to pull in custom fields (with ACF). I don’t suppose you can post any of your relevant code? Thank you.

    #1189310

    Hi,

    What specific changes are you trying to implement in the masonry element? If you’re only trying to insert custom fields from ACF, then you have to modify the html function or method of the avia_masonry class in the av-helper-masonry.php file. The html function contains the frontend markup of the masonry element.

    The following functions should help.

    // https://www.advancedcustomfields.com/resources/get_field/

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.