Style.css changes not working

Hi,

I have been using the Content CSS tab in the Cornerstone sidebar to make changes to my site so that I can see those changes happening live as I make them.

However, I would like the changes applied to classes to apply throughout the site, and when I cut and paste the CSS out of the sidebar and into the Appearance > Editor > style.css file it no longer works.

I have tried clearing the browser cache and purging caches in the Dashboard with a Plugin without seeing any results.

Any idea what I might be doing wrong?

Thanks

Hi there,

It could be that the CSS file being loaded on the site is still the cached version even if you tried clearing it using the plugin.

Please try to clear your browser cache as well then see if you are able to see the changes.

You may also try adding this code to the functions.php file of the child theme:

function vc_remove_wp_ver_css_js( $src ) {
	$my_theme = wp_get_theme();
	$v = $my_theme->get( 'Version' );
	if ( strpos( $src, 'ver=' . $v ) )
		$src = remove_query_arg( 'ver', $src );
	return $src;
}

add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 );

https://theme.co/apex/child-themes

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.