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