Skip to content

Widget Containers

Widget containers are predefined areas on storefront pages where administrators can place widgets and CMS blocks directly from the Magento admin panel. They make it possible to add banners, promotional strips and other custom content to key places on the site without any code changes or deployments.

Overview

Every Venta page is built from named layout containers. A widget assigned to a container renders in that container's position on the storefront. Starting with Venta 1.7.0 the container list in the admin panel is curated: entries that never render in the theme are hidden, so every option you can select produces visible output.

Adding a Widget to a Container

Configuration Path: Content > Widgets > Add Widget

  1. Choose the widget type (for a CMS block use CMS Static Block) and the Venta design theme
  2. Fill in the storefront properties and assign store views
  3. Under Layout Updates, choose where the widget appears:
    • Display on selects the page type (for example All Pages, All Product Types or Anchor Categories)
    • Container selects the position on the page
  4. Save the widget and flush the cache

The container list depends on the selected page type. Product page containers only appear when a product page type is selected, category containers only for category page types.

Available Containers

All Pages

ContainerPosition on the page
Page TopVery top of the page, above the header and announcement bar
Page Header PanelTop area of the header
Page HeaderInside the header, below the header panel
Page Header ContainerInside the header, after the menu
Venta Mega Menu - Desktop Bar RightRight side of the desktop menu bar
Venta Mega Menu - Dropdown PanelsInside every mega menu dropdown panel
Venta Mega Menu - Mobile Menu LinksInside the mobile menu drawer
After Page Header TopDirectly below the header, after the breadcrumbs
After Page HeaderBelow the header area, above the main content
Before Main ColumnsTop of the main columns area
Main Content TopTop of the main content column
Main Content AreaMain content column; on category pages the widget appears above the product toolbar
Main Content ContainerBottom of the content area
Main Content AsideEnd of the main content area
Main Content BottomEnd of the main content area, after Main Content Aside
Sidebar MainLeft sidebar on two-column pages; see the note below
Before Page FooterEnd of the content area, above the footer
Before Page Footer ContainerBetween the content and the footer
CMS Footer LinksFooter links area, after the links
Page FooterInside the footer, below the footer columns
Page Footer ContainerBottom of the footer
Page BottomVery bottom of the page, below the footer

Sidebar Main note: this container exists only on pages with a two-column layout. In Venta those are category pages, search results and customer account pages. A widget assigned to Sidebar Main with Display on: All Pages appears below the category filters, below the search filters and under the account navigation. To target category pages only, use Display on: Anchor Categories.

Product Page

ContainerPosition on the page
Product View Extra HintDirectly below the price. Intended for payment messaging (for example Klarna or PayPal installment banners) and short promotional hints
Product Additional InfoEnd of the product information column, below the contact block
Before Customer RatingsBetween the product description section and the Customer Ratings section
After Customer RatingsBelow the reviews list
Review Form Fields BeforeInside the "Write a review" dialog, above the form fields. Visible only when the dialog is open
Product Details Top (Full Width layout only)Around the product details section. Renders only on products whose Design > Layout is set to Product Full Width
Product Details Bottom (Full Width layout only)Same as above, below the details section

The Product View Extra Hint, Before Customer Ratings, After Customer Ratings and Product Additional Info containers were added or repositioned in Venta 1.7.0.

Category Page

ContainerPosition on the page
Additional InfoBetween the toolbar and the product grid
Sidebar MainDirectly below the category filters
Main Content TopAbove the product toolbar. Recommended for banners below the category description

Behavior Notes

Widget Placement Inside a Container

A widget is always added as the last element of its container, after any theme content the container already holds. The Sort Order field on the widget form orders multiple widgets within the same container relative to each other. It cannot place a widget above the container's existing theme content.

Page Types Without a Container

If a widget targets a container that does not exist on a given page type, nothing is rendered on that page. There is no error; the widget simply has no output there.

For Developers

Container names in layout XML map to the labels above (for example page.top is After Page Header and after.body.start is Page Top). Two containers are intentionally not exposed to administrators:

  • category.top.info on category pages holds the category banner, title and description. Widgets injected into it become unstyled grid items and break the desktop layout. Use Main Content Top for promotional content in that area instead.
  • The hidden entries and the renamed Product Details labels are managed by the CleanWidgetContainerList plugin in Magebit_VentaTheme. Child themes can extend or reduce both lists through di.xml arguments.