Magento Add Stylesheet to Head for Specific Category

If you want to include a custom stylesheet for a particular category you can do this very cleanly by specifying custom layout xml in the category admin.

Simply find the category you want to apply this to and then hit the ```display settings tab

Then in the custom layout update box, paste something like this:

[xml] css/extra_styles.css


clear your cache and this stylesheet should be included in the head section for this category.

You could of course do this in the layout XML files, however if you need somethign that the admin of the site can easily apply to any other new categories that needs the same treatment then this is a great solution.

Tags: Cascading Style Sheetsdesignmagentocustomxmllayouttipcategorystylesheetincludehead