Correct use for "widget_container" tag

Hi everyone!, I found a “widget_container” tag in an old hubl layout that Im working right now, this tag appears in the current documentation in flexible columns:

In this link talks about the old module drag and drop structure and found that it doesn’t work in some common structures: “Please note that flexible columns can only be added to page templates, not blog or email templates.

With “dnd_area” tag we can build different type of pages with a similar structure, approaching in multiple cases the same layout.

My question is: Is it still viable use “widget_container” tag? Thanks for your time.

Hey @CPacheco - for anything new you’re building, it’s best to avoid widget_container. These are from the old “drag and drop templates” (yeah, the naming is confusing) and are not recommended. They only allow users to drag modules in vertically, can’t be used in themes… etc.

That being said, a lot of client portals still use those templates since the new drag-and-drop themes only launched in mid-2020. So if you’re just making edits to existing templates and migrating to the new ones isn’t in the project scope, you might need to continue using them for now.


Stephanie O’Gay Garcia

Freelance HubSpot CMS Developer

Website | Contact

@CPacheco widget_container is definitely still in use. It is definitely available for use in themes as well.

I would argue that the drag-and-drop editor for HubSpot should be avoided at all costs, due to the ancient infrastructure it’s built on making it very limiting (uses bootstrap 2 syntax and has only 1 breakpoint), and coding your own columns inside a module is actually more beneficial most of the time.