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.
Hello!
I've built a small module similar to Block Class. It also adds an additional class to the block's $classes array. Instead of allowing/requiring the user to manually add a class to the block, my module takes the block's title, makes it HTML friendly, and adds it to the array.
A couple of people suggested that my module get added to Block Class since it is similar in functionality. What do you think? Is this something you are open to adding?
Comments
Comment #1
idflood CreditAttribution: idflood commentedI'm a recent new user of block_class module but this feature would be awesome. Definitely +1 for the idea.
Comment #2
aalireza CreditAttribution: aalireza commentedhow can use this module ? i installed Block Title Class but not working.
Comment #3
rrrob CreditAttribution: rrrob commentedAfter not hearing back from Block Class maintainers, I decided to spin this feature off into a stand alone module (with other features as well). Please see Theme Utils if you're interested.
Comment #4
rrrob CreditAttribution: rrrob commented