Is there a way to inject a css class in panels regions ?
jide - October 22, 2009 - 15:27
| Project: | Panels |
| Version: | 6.x-3.2 |
| Component: | Plugins - styles |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Jump to:
Description
Hi there,
Is it possible to inject a css class inside a region somehow so instead of having "panels-flexible-region ..." we could have "panels-flexible-region my-custom-class" ?
Thanks !

#1
Yes, a setting for that should already be available in the region settings when the layout manager is on.
#2
Thank you Earl, but apart from the region style setting, i can't see such an option. Or maybe I am looking at the wrong place ?
In fact I want to do this programmatically, but I will be able to find out how to do by setting it through the UI.
#3
Status change.
#4
Assuming you're using the flexible layout:
Click 'show layout designer'
Above the region you want to modify, click the word Region with the little down arrow.
Click 'Region settings'
Set the CSS class variable
#5
Thanks.
#6
Hi I'm not sure if this is a bug, I've also posted about it here: http://drupal.org/node/635984
but I just wanted to warn people that I optimised my CSS and weirdly my region CSS stopped working and started automatically taking the pane CSS from the pane within it.
So, if you're going to optimise after adding a region CSS, backup first, and let me know if it had no effect...cos then I can rule it out.
Thank you
Thomas