Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1429705

    Hi,

    I am building a new website with advanced layout builder. I seem to have a problem for various elements. If i change the styling in the advanced layout builder like e.g. the padding it is not visible on the published website.

    One example for instance. I have a divider set up with custom layout with 30px width.
    screenshot
    However in the published site the width in the css is still 100%.
    screenshot

    These problems arise for most elements and styling parameters.

    Any ideas?

    #1429734

    Hey rbolijn1,

    Did you try to clear the old CSS and JS files under Enfold->Performance? If that doesn’t help, then please post admin WordPress login details to your site in private, and let us know where we can see the actual problem.

    Best regards,
    Rikard

    #1429749
    This reply has been marked as private.
    #1429791

    Hi,

    Thank you for the info.

    The issue occurs because the server fails to generate the post css files. These files contain the custom styles of the elements in the builder for a specific post or page. To temporarily fix the issue, we added 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

    #1429800

    Hi Ismael,

    Thank you for your fix. Was this only happening to me? What is the longterm fix? Functions.php will not be overwritten after an update?

    Kind regards,

    Ronald

    #1429848

    Hi Ronald,

    You need to use a Child theme in order to preserve these custom codes that are added to Enfold.
    You can download the child theme here: https://kriesi.at/documentation/enfold/child-theme/
    Follow the instructions on the link and move the custom codes from the parent theme to the child theme.
    Hope this helps.

    Best regards,
    Nikko

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