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

    In 8/20 I customized av-helper-masonry.php and put it into /shortcodes/ and I added this to my child theme’s functions.php:

    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;
    }

    It has been working well until recently.

    After upgrading Enfold theme, I am getting a fatal error so I have commented out the “avia_include_shortcode_template” function. Is there a better way to customize Masonry so that I don’t run the risk of crashing after Enfold updates. I have several sites that are affected.

    Thanks, Nancy

    #1313296

    Hey Nancy,

    With 4.8.4 there has been a heavy change in Enfold intruducing post-css files.
    Inline style=’…’ in html tags will be removed and moved to a post specific css file with selectors.

    Masonry elements already have been updated – also av-helper-masonry.php. You will have to review the original file.

    I do not know what you did, but please check functions get_element_styles() and also how default values are set now.

    Hope this helps you.

    Best regards,
    Günter

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