Skip to main content
added 284 characters in body
Source Link
mpdonadio
  • 38.1k
  • 8
  • 89
  • 142

I have an Omega subtheme that I am working on, and a request has come in to have a zone and all regions within the zone not be gridded. By not gridded, I mean that I need the zone and all regions inside it to not be bound by any of the widths that 960.gs imposes. Just having the full width wrapper around the zone is not sufficient for that the requested layout.

I am not sure what the best way to do this is.

Inside template_process_zone() I can remove the grid classes from $variables["content_attributes_array"]["class"] and inside template_process_region() I can remove them from $variables["classes_array"]. This is a little messy because it assumes prior knowledge of all the grid classes (or at least the patterns), but it mostly managable.

The problem is that I can't see how I can figure out what zone I am in from within a region. I want to avoid hardcoding region names in the template_process_region() for those to degridify.

I could also override the grid with CSS for a particular zone, but there are a lot of rules to override to future proof any changes.

Is there a well tested solution to this or other options that I am not considering?

I have an Omega subtheme that I am working on, and a request has come in to have a zone and all regions within the zone not be gridded.

I am not sure what the best way to do this is.

Inside template_process_zone() I can remove the grid classes from $variables["content_attributes_array"]["class"] and inside template_process_region() I can remove them from $variables["classes_array"]. This is a little messy because it assumes prior knowledge of all the grid classes (or at least the patterns), but it mostly managable.

The problem is that I can't see how I can figure out what zone I am in from within a region. I want to avoid hardcoding region names in the template_process_region() for those to degridify.

I could also override the grid with CSS for a particular zone, but there are a lot of rules to override.

Is there a well tested solution to this or other options that I am not considering?

I have an Omega subtheme that I am working on, and a request has come in to have a zone and all regions within the zone not be gridded. By not gridded, I mean that I need the zone and all regions inside it to not be bound by any of the widths that 960.gs imposes. Just having the full width wrapper around the zone is not sufficient for that the requested layout.

I am not sure what the best way to do this is.

Inside template_process_zone() I can remove the grid classes from $variables["content_attributes_array"]["class"] and inside template_process_region() I can remove them from $variables["classes_array"]. This is a little messy because it assumes prior knowledge of all the grid classes (or at least the patterns), but it mostly managable.

The problem is that I can't see how I can figure out what zone I am in from within a region. I want to avoid hardcoding region names in the template_process_region() for those to degridify.

I could also override the grid with CSS for a particular zone, but there are a lot of rules to override to future proof any changes.

Is there a well tested solution to this or other options that I am not considering?

Source Link
mpdonadio
  • 38.1k
  • 8
  • 89
  • 142

How to remove the grid from a zone in Omega

I have an Omega subtheme that I am working on, and a request has come in to have a zone and all regions within the zone not be gridded.

I am not sure what the best way to do this is.

Inside template_process_zone() I can remove the grid classes from $variables["content_attributes_array"]["class"] and inside template_process_region() I can remove them from $variables["classes_array"]. This is a little messy because it assumes prior knowledge of all the grid classes (or at least the patterns), but it mostly managable.

The problem is that I can't see how I can figure out what zone I am in from within a region. I want to avoid hardcoding region names in the template_process_region() for those to degridify.

I could also override the grid with CSS for a particular zone, but there are a lot of rules to override.

Is there a well tested solution to this or other options that I am not considering?