2

It seems that by default all regions are rendered in Omega theme because of the Debug blocks.

<aside class="grid-3 region region-sidebar-first" id="region-sidebar-first">
  <div class="region-inner region-sidebar-first-inner">
    <div class="alpha-debug-block"><h2>Sidebar First</h2><p>This is a debugging block</p>
    </div>  
  </div>
</aside>

Is there a way to have an option to debug blocks and hide empty blocks at the same time?

2

Go to admin/appearance/settings/your_subtheme_name. Check attached image. You can set rights on who is or isn't allowed to see debugging stuff.

Uncheck debugging options will hide empty blocks...

enter image description here

  • But this hides debugging option from the user completely. I want to be able to see debugging blocks and hide them completely without going to configs. – Reinstate Monica Feb 6 '13 at 12:04
  • Use roles option. check for "administrator" only... – monymirza Feb 6 '13 at 12:53
  • yes, but then as administrator I will see the broken page.. – Reinstate Monica Feb 6 '13 at 13:09
  • I will vote up the answer as it is helpful, but there is still a problem with the theme as it is not practical to change config all the time. I would rather had this region removed completely when Debug is off in the theme. – Reinstate Monica Feb 6 '13 at 14:44
  • this doesn't make sense. if debug option is checked, then empty block will be shown . thats it..... – monymirza Feb 7 '13 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.