Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1431703

    Hello,

    We have found that we were getting files upload to our site,
    wp-content/uploads/dynamic_avia/avia_posts_css/post-3672.css
    wp-content/uploads/dynamic_avia/avia_posts_css/post-11174.css
    .
    Can you check that this is normal when updating enfold? We want to check to avoid error or intrusions.

    Thanks

    #1431733

    Hey keep12,

    Thank you for the inquiry.

    Yes, the files in the avia_posts_css folder are generated by the theme to render the custom styles of the builder elements. If you want to disable the generation and apply the custom styles inline instead, just add this filter in the functions.php file.

    /**
     * Filter to skip css file generation.
     * You can add logic to skip for certain pages/posts only.
     * 
     * @since 4.8.6.1
     * @param boolean $create
     * @return boolean					true | false or anything else to skip generation of css file
     */
    function custom_avf_post_css_create_file( $create )
    {
    	return false;
    }
    
    add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );

    Best regards,
    Ismael

    #1431779

    Hello,
    So as we have enfold child i have to change it on the enfoldchild>…>functions.php, right? or do i have to change it in the main functions.php?

    Also we are having an issue related… will send the picture to see

    Thanks for your time

    #1431833

    Hi keep12,

    You can just add it on the child theme and not on parent/main theme.
    As for the issue shown in the screenshot, that’s pointing to wp-includes/index.php which is a WordPress file, Enfold does not add anything to it, you may want to check it’s content and if there’s any difference from the original content then you can remove it.

    Best regards,
    Nikko

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