Themer feature request. I would love to be able to add a CSS class to my panel page in the geeral setting tab for my variant. (below is a mockup)

css
Thanks!

CommentFileSizeAuthor
request.JPG30.84 KBRockSoup
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Letharion’s picture

Category: feature » task
Status: Active » Postponed

Sounds like a useful feature request. I'm adding it to tasks, but putting it in postponed until someone actually starts work on it.

merlinofchaos’s picture

Unfortunately the layout system does not support injecting classes; this would be a change to the layout API and is therefore a very difficult thing to do. The flexible layout system allows you to specify a class in the layout config, but regular layouts only allow IDs, not classes, unfortunately.

tim.plunkett’s picture

kle’s picture

Themer feature request 2:
I also would like to define classes per panels-region (like in each single pane).

What's about this ?
thiswouldbesooonice

merlinofchaos’s picture

It easy to inject classes into panes; you can do this programattically via template_preprocess_panels_pane and each pane has a css class setting that can be used to inject a class from the UI.

lsolesen’s picture