Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By local on
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
you are fine adding it to
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.
will do, thanks, yes, I have
will do, thanks, yes, I have duplicated the default folder, so I am experimenting with custom themes as well.
Sound advice here, ALWAYS
Sound advice here,
ALWAYS keep the bluemarine theme incase things go pear shaped lol
Michael O'Toole
Gay Youth :: South East - Founder & Operations Administration