Optimization

Overview

Tips and tricks to optimize your theme.

Disable Merged CSS and JS

To disable the script merging feature please add the below filter to functions.php file.

add_filter('avf_merge_assets', function() {
	return 'none';
});

Full width Quick CSS text area

Quick CSS is a great way to add your custom styles. In case you use it often and your list is growing and want more space to manage the code please add the below function to your functions.php. If your list of modifications is growing we recommend installing a child theme and using the style.css to add your styles which can be accessed from Appearance > Editor

function admin_head_mod() {
echo '
<style type="text/css">.avia_sidebar_active .avia_control {width: 100%!important;}
.avia_sidebar_active .avia_description {width: 100%!important;float: left!important;padding: 0 0 10px 0!important;}</style>';
}
add_action('admin_head', 'admin_head_mod');