Excessive bricks/css/stylesheets.css files

Hi, I am not sure if I am doing things correctly, but many of my pages seem to be generating these CSS stylesheets within , examples:

<link rel='stylesheet' id='bricks-child-css' <link rel='stylesheet' id='bricks-admin-css' <link rel='stylesheet' id='bricks-post-17-css' <link rel='stylesheet' id='bricks-post-3122-css'

I’ve checked some of the other Bricks sites I’ve built, and I noticed that while some of them include these CSS stylesheets in the <head> section, others don’t.

Can someone please explain how this happened and whether or not this is considered a good practice?

For ref, I don’t use many plugins at all, really, there are only ACF Pro and WPCodeBox that are relevant to developing the sites.

Hi, if you have CSS loading method set to External Files, bricks will generate CSS as needed for specific templates and pages. Everything depends on how you style your pages.

This is stylesheet of your child theme:

<link rel='stylesheet' id='bricks-child-css'

This is stylesheet for post with id 17:

<link rel='stylesheet' id='bricks-post-17-css'

and so on…

Hey MartinWB,

That makes sense. Thank you!

You mentioned about ‘everything depends on how you style your pages…’, does that mean I may have been doing it incorrectly or not using the best-practices, by any chance?

You may be using best practices and yet you will have some generated stylesheets :slight_smile:.

Thank you for the help :slight_smile: