-
AuthorPosts
-
March 17, 2022 at 4:11 pm #1344943
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.phpWhat should be my new method for customizing masonry as I can see there have been many changes to the theme.
March 17, 2022 at 4:38 pm #1344947Hi,
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,
YigitMarch 17, 2022 at 5:00 pm #1344953and how do I tell the child theme to use my version of class-avia-masonry.php instead of the parent version?
March 18, 2022 at 5:08 am #1345000Hi,
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,
IsmaelAugust 23, 2022 at 3:11 pm #1362511Has anything changed here in recent theme updates? My custom class-avia-masonry.php has stopped working…
August 24, 2022 at 5:08 am #1362585 -
AuthorPosts
- You must be logged in to reply to this topic.
