Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1405370

    Hello,
    I’m trying to overwrite a file wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php in my enfold-child theme by creating a new file wp-content/themes/enfold-child/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php but it doesn’t work. For example, I’m also overwriting wp-content/themes/enfold/includes/loop-index.php by creating wp-content/themes/enfold-child/includes/loop-index.php and it’s working perfectly. Is there any way to overwrite wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php file in enfold-child?

    • This topic was modified 1 year, 6 months ago by Global4Net.
    • This topic was modified 1 year, 6 months ago by Global4Net.
    #1405472

    Hey Global4Net,

    Thank you for the inquiry.

    You don’t need to copy the structure of the shortcode template to override a builder element or create another. Instead, you need to create and register a new shortcode folder in the child theme using the avia_load_shortcodes filter. Please refer to the documentation below for more information.

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

    Best regards,
    Ismael

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