This project is read-only.

Changing layout of single html widget

Topics: Writing themes
Aug 30, 2011 at 10:04 PM

Hi there,

I'm placing various HTML widgets on my homepage for the single reason that the end user can edit the text there. My problem is, I have three widgets. Two need their title in <h3> and one in <h1>.

Would I override the wrapper for the <h1> title using But I have no idea how! If you could give me a hand, that'd be awesome.

The shape name is in all cases "Widget", but the <h3> ones are in their own zone, but the <h1> isn't. It just says "Widget" in the developer tools shape tracer. As if it's a root item, but I don't even know why! :)

Aug 30, 2011 at 10:10 PM

Unfortunately wrappers don't have alternates. You could override the wrapper and put a test in there, or you could move the title rendering from the wrapper into the actual content template, which you will be able to alternate.

Aug 31, 2011 at 2:01 PM

With adding a test, do you mean code to test which zone I'm in or something? How would I do that, verify which zone I'm in?

Aug 31, 2011 at 8:42 PM

It will be easier to take the title out of the wrapper and into the widget template. Then you can alternate.