Can I surpress various block CSS?

Permalink
Hi

I noticed that an addon I am using attempts to load quite a few CSS files for various blocks.

Is there any way to surpress these?

I've put all my styles into my main CSS file (I don't want to manage them at the block level) and I don't really want the five other .css files loading that I am not going to use.

Thanks

malkau
 
JohntheFish replied on at Permalink Reply
JohntheFish
It all depends on where the css is loaded from.

It could be
- Loaded automatically because it is in a block's css directory (you would need to delete the files or rename the directory, but that would present update issues)
- Loaded automatically because it is a block template's view.css (create a custom template)
- Loaded explicitly using code in an event handler in a controller such as on_page_view or on_before_render (you will need to override the controller)
- In 5.7 loaded as a resource from a view (5.7 has resource aggregation, so that can remove a lot of this)

Also have a look at Miser. It will aggregate css for you. See the link on
http://www.concrete5.org/developers/open-source/...