I have created a block inside my module and I have included some css codes to go with the block. I could put these custom css at the end of the style.css for my current theme. Is there anywhere else I can put them if I want to keep them separate? Please let me know the normal way that I should do it in Drupal. Thanks.

Comments

VM’s picture

you are fine adding it to style.css, however make sure you arent setting yourself up for it to be overwritten with an update.

in otherwords, if you are using a default theme, like blue marine, and are adding to the style.css, duplicate the folder call it yourcustomtheme and enable it in the admin -> themes area.

using the full html filter, you may also be able to create an entirely new css stylesheet for your block and call the stylesheet into the block ? Then your modifications remain seperate.

local’s picture

will do, thanks, yes, I have duplicated the default folder, so I am experimenting with custom themes as well.

MikeyGYSE’s picture

Sound advice here,

ALWAYS keep the bluemarine theme incase things go pear shaped lol


Michael O'Toole

Gay Youth :: South East - Founder & Operations Administration