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.
I'd like to style various components based on the page that is being viewed, but by default most page elements are not uniquely styled until too late into the css cascade.
#page #section-content #zone-content-wrapper #zone-content #region-content ... ... ... [some unique ID]
What is the best way to get a unique #ID earlier in the cascade with Omega? I imagine some hook would work, I see an $attributes var in most of the templates, should we be manipulating that var? Just looking for a best practice. thank you.
Comments
Comment #1
cborgia CreditAttribution: cborgia commentedFound solution, context module has a reaction "Theme HTML", with this reaction (and a given context) you can add classes to the page element.