Modify Layout HTML Wrappers

Is it possible to add one or more HTML wrappers around the out of the box Layout regions?


Would also like to put in different css classes based on the layout region type...  Is there an OnBeforeRender event for a layout region I could attach to?

  • You can add additional markup before/after regions within the theme by setting the Layout Region Leader/Trailer on the HTML Formatting tab -- this will apply the same markup to each region.

    To adjust the markup further, you could use client-side script or an HttpModule or HttpResponse filter to adjust markup before it is rendered.

  • In reply to Ben Tiedt:

    Thanks Ben - We wanted to go deeper and actually modify the layout wrappers so we could implement a responsive framework (Bootstrap) - We did find a way to get this accomplished.