Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.php

    What should be my new method for customizing masonry as I can see there have been many changes to the theme.

    #1344947

    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

    #1344953

    and how do I tell the child theme to use my version of class-avia-masonry.php instead of the parent version?

    #1345000

    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

    #1362511

    Has anything changed here in recent theme updates? My custom class-avia-masonry.php has stopped working…

    #1362585

    Hi,

    Thank you for following up.

    Nothing much has changed in the class-avia-masonry.php file lately. What modifications did you add in the shortcode file, and where can we see the issue?

    Best regards,
    Ismael

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