It would be useful to have an extra class on blocks that indicates if the block title is being displayed (perhaps title/no-title or just no-title when no title is present).

One use case for me is that I sometimes place a webform in a sidebar with a title acting as a call to action. I target the block-webform-block when styling the webform so it looks the same everywhere I place it. However, in some cases (e.g. the Contact page) I want to display the webform with out a title, but retain the styling on the form. With no title in the block, I need to add padding to the top of the form so the border around the form looks correct. The only way to achieve this in this case is either to reference the block based on the region its in (bs-region--left) or use the Block Class module to add the no-title class to the block.

Thanks.

Comments

millionleaves created an issue. See original summary.

markhalliwell’s picture

Status: Active » Closed (won't fix)

The only way to achieve this in this case is either to reference the block based on the region its in (bs-region--left) or use the Block Class module to add the no-title class to the block.

You can also add this class to your own block templates within a sub-theme.

Since there a myriad of options available on how to accomplish this task, as well as the fact that this is is not a Bootstrap specific issue, this project's policy is to leave this kind of site-specific customization to the themer/developer to implement as they see fit.