I’m looking to remove links to certain stylesheets that are in my site’s theme. So, I have a few stylesheets referenced in templates, depending on what each needs, but how can I remove a stylesheet from the theme so that I can reference it only on the pages that need it?
The only way that I’ve been able to accomplish this is by creating multiple templates or put everything into one stylesheet so you don’t have to worry about calling multiple stylesheets.
Start by removing the stylesheet from your theme. Then, store your stylesheet as a file asset. Lastly, edit the metadata of the page where you want to reference the stylesheet, and insert the reference in the the head of the page.