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

    Could you please indicate how I might be able to completely disable the Dynamic CSS function? Now that the styling of my site has been finalized, I’ll take the CSS that is generated and just add it to custom.css.

    #88886

    Hi,

    Open functions.php and find this code

    /*
    * dynamic styles for front and backend
    */
    if(!function_exists('avia_custom_styles'))
    {
    function avia_custom_styles()
    {
    require_once( 'includes/admin/register-dynamic-styles.php' ); // register the styles for dynamic frontend styling
    avia_prepare_dynamic_styles();
    }

    add_action('init', 'avia_custom_styles', 20);
    add_action('admin_init', 'avia_custom_styles', 20);
    }

    It starts there. Note: Some style will be broken if you remove that function.

    Regards,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Disable Dynamic CSS’ is closed to new replies.