I disabled the custom feature on the live site but first i created a staging site:
so you can help me fix this. My technique has been to add this code to functions.php:
/* Override default code with php found in /shortcodes */
add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.’/shortcodes/’);
return $paths;
}
and then make mods to the child version of /shortcodes/av-helper-masonry.php
What should be my new method for customizing masonry as I can see there have been many changes to the theme.
Hi,
Thanks for contacting us!
av-helper-masonry.php file is deprecated. You can use /enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php file instead :)
Regards,
Yigit
and how do I tell the child theme to use my version of class-avia-masonry.php instead of the parent version?
Hi,
Thank you for the update.
You can copy the class-avia-masonry.php file in the shortcodes folder within the child theme directory. The theme will then automatically prioritize the shortcode files in the child theme and override the original one in the parent theme.
Best regards,
Ismael
Has anything changed here in recent theme updates? My custom class-avia-masonry.php has stopped working…