Tagged: enfold.css
I’ve been having issue today using the styling section in theme options. Whatever I changed it wouldn’t update.
Permissions were correct
Changed wp_register_style( 'avia-grid' , $template_url."/css/grid.css", array(), $ver, 'screen' );
from 1 to $ver as suggested in this post https://kriesi.at/support/topic/how-to-remove-the-get-parameters-from-jscss-files-eg-enfoldcssver1
Still nothing changed then I changed the number in the following code and the next set of changes started to display.
{
$avia_upload_dir = wp_upload_dir();
$avia_dyn_stylesheet_url = $avia_upload_dir['baseurl'] . '/dynamic_avia/'.$safe_name.'.css';
wp_register_style( 'avia-dynamic', $avia_dyn_stylesheet_url, array(), '1', 'screen' );
wp_enqueue_style( 'avia-dynamic');
}
Not sure whats going on but it took me a age to sort it out so it may help others.
Cheers
Greg