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.
Seen, for example, at admin/reports.
I see two ways to fix this:
- 1. Add a clearing class to the page title block, based on whether the tabs block is present. This would need some preprocessing work probably
- 1. bite the bullet and define custom regions for the theme, providing a region just for page title, tabs, and action links. This region can have a clearfix as a whole.
Comments
Comment #2
joachim CreditAttribution: joachim commentedIt appears that by the time hook_preprocess_region() is invoked, the blocks are already rendered, so I'm not sure how that preprocessor can affect the page_title block.
Comment #3
joachim CreditAttribution: joachim commentedComment #4
joachim CreditAttribution: joachim commentedThis requires us to define default blocks, so that they go in the right regions on theme install.
(Referencing #2647448: Allow themes to specify default regions for blocks, as it would be nicer if this could be done without so much boilerplate.)
Comment #6
joachim CreditAttribution: joachim commented