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 !

Comments

merlinofchaos’s picture

Status: Active » Fixed

Yes, a setting for that should already be available in the region settings when the layout manager is on.

jide’s picture

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.

jide’s picture

Status: Fixed » Active

Status change.

merlinofchaos’s picture

Status: Active » Fixed

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

jide’s picture

Thanks.

thomasmuirhead’s picture

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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Syntapse’s picture

Issue summary: View changes

is there a reason that css is not available on fixed layouts? it would be very useful. the css i need to add is not related to the layout dimensions...