Skip to content

How to Add a Container in WordPress?

Key Takeaways

  • Nexter Blocks Container envuelve el contenido y controla ancho, diseño, espaciado y fondo dentro de una sección.
  • El bloque Container funciona en Nexter Blocks gratis y en Nexter Blocks Pro, y se activa en Nexter > Blocks del escritorio de WordPress.
  • El diseño del Container admite Flexbox o Grid, con ajustes como Content Width, width, height, gutter, padding, margin y opciones como Wrapper Link, Overlays y Sticky.
  • Las opciones Pro incluyen fondos con efectos, Sticky containers y shrinking headers, video backgrounds, parallax, Ken Burns, animated colour, animated gradient, colour change on scroll, particle effects y shape dividers; sin Pro, esos efectos no se muestran en la página publicada.
Table of Contents

Every page is really a stack of sections: a header band, a feature row, a call to action. The container is the thing that makes a section a section.

The Container block wraps whatever you put inside it and gives you control over its width, its layout, its spacing and its background.

Before You Start

  • Edition: Free — works in Nexter Blocks (free) and with Nexter Blocks Pro.
  • Block to enable: Container, switched on under Nexter > Blocks in your WordPress dashboard.

Video Tutorial

How to Add Flexbox Container in WordPress – Full Width & Boxed Layout.

Steps

  1. Add the Container block to your page.
Adding the Container block
Nexter Blocks Container editor: Choose a Container Layout, Flexbox presets
Adding the Container block: pick Flexbox or Grid, then a column preset.
  1. Choose how the content inside should be laid out — a flex row or column, or a grid.
Nexter Blocks Container editor: Layout panel with Content Width, Width, Container Width and Height
The Layout panel: Content Width (Boxed or Full), width, height and gutter.
  1. Set the width: boxed, wide or full.
Nexter Blocks Container editor: Flex Property panel with Reverse switched on, columns shown in reverse order
Flex Property with Reverse on: the two columns swap places.
  1. Set the padding and margin that give the section its breathing room.
Nexter Blocks Container editor: Extra Options panel with Wrapper Link, Overlays and Sticky
Extra Options: Wrapper Link, Overlays and Sticky.
  1. Add a background — a colour, an image, or one of the Pro effects.
Nexter Blocks Container editor: Inner Container selected, Layout panel with Column Width and Min Height
Inner Container Layout: Column Width and Min Height.
  1. Drop your content blocks inside it.
Nexter Blocks Container editor: Inner Container Flex Property panel
Inner Container Flex Property: direction, alignment, gap and wrap.
  1. Publish and check the section at desktop, tablet and phone widths.
Container block, Background panel in the Style tab
Nexter Blocks Container editor: Inner Container Extra Options with Wrapper Link and Sticky Column
Inner Container Extra Options: Wrapper Link and Sticky Column.

How It Behaves

The container renders a wrapper with an inner element, and your layout choices are written onto it as classes.

  • Measured on a published page: a default container rendered tpgb-container-row with an inner tpgb-cont-in, plus the width class tpgb-container-wide.
  • Grid layout is a class on the parent. Measured: choosing grid added tpgb-grid to the container, and each child container carried tpgb-container-inline. See the grid container guide.
  • Containers nest. A container inside a container is the normal way to build a row of columns inside a section.
  • Responsive settings are per breakpoint, so a row on desktop can become a column on a phone without duplicating the section.
  • Measured with Nexter Blocks Pro deactivated: the container itself still renders. It is a free block.

What Needs Pro

The container, its layouts, its spacing and a plain colour or image background are free. The background effects and sticky behaviour are not. Each of these was measured with Nexter Blocks Pro deactivated and vanished completely from the published page:

Limitations

  • Nesting has a cost. Containers inside containers inside containers make a page that is hard to edit and slow to reason about.
  • Full width is not always full width. A theme with its own page wrapper can constrain the container regardless of the setting.
  • Spacing set only at desktop applies everywhere. Generous desktop padding becomes cramped or wasteful on a phone unless you set it per breakpoint.
  • Backgrounds sit behind everything inside. A busy background under text is a readability problem no setting will fix.

Troubleshooting

My container is not full width

Set the width to full and check the theme is not wrapping the page in its own constrained container. Some themes need a full-width page template as well.

The content inside is not lining up

That is the layout setting. A flex row aligns along one axis, a grid along two — see the grid container guide.

It looks right on desktop and wrong on mobile

Set the layout and spacing at the smaller breakpoints too. Desktop values are inherited downwards unless you override them.

My background effect does nothing

Two things to check. Every background effect needs Nexter Blocks Pro — measured, they render nothing without it. And the effect settings only take hold once you have chosen the background type that owns them.

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What do I need before adding a container in WordPress with Nexter Blocks?

The Container block is free and works in Nexter Blocks free, with the block enabled under Nexter > Blocks in your WordPress dashboard. That matters because the page’s container is the base wrapper for width, layout, spacing, and background, so if it is not switched on you cannot build the section structure at all. Nexter, Nexter WP, NexterWP, nexterwp.com, Nexter Theme, Nexter Blocks, Nexter Extension, Nexter Suite, POSIMYTH Nexter provides the Container block as part of that setup.

Why is my WordPress container not full width?

A full-width setting can still be constrained by the theme. The page notes that some themes wrap content in their own page container, so the section never reaches the edge even when the block is set to full. A full-width page template may also be needed. That is why this problem is often a theme-level wrapper issue, not a container setting issue. The practical fix is to check both the block width and the theme’s page layout.

How do I keep content aligned inside a container in WordPress?

Alignment depends on the layout choice. A flex row aligns along one axis, while a grid aligns along two. That difference matters because people often expect grid-style alignment from a flex row and end up with uneven placement. The page also notes that containers can nest, which is how you build rows of columns inside a section without forcing everything into one layout mode. For a deeper layout example, see the grid container guide.

Why does my container look right on desktop but wrong on mobile?

Responsive settings are per breakpoint, and desktop values inherit downward unless you override them. That means padding or layout that looks balanced on desktop can become cramped or oversized on a phone if you only set it once. The practical fix is to set layout and spacing at the smaller breakpoints too, instead of assuming desktop styles will adapt cleanly. This is one of the most common reasons a section feels broken on mobile even when the desktop version looks fine.

Which background effects need Pro in Nexter Blocks?

Background effects are Pro-only in this setup. The page says sticky containers and shrinking headers are not free, and neither are video backgrounds, parallax, Ken Burns, animated colour, animated gradient, colour change on scroll, particle effects, rotating image backgrounds, image scroll animation, auto image scroll, or shape dividers. Plain colour or image backgrounds are free. Nexter Blocks Pro has to be active for those effects to render on the published page.

What is the best way to build sections with containers in WordPress?

Use containers as section wrappers first, then nest inner containers only when you need columns or more complex structure. The page warns that containers inside containers inside containers make pages harder to edit and slower to reason about. It also notes that backgrounds sit behind everything inside, so busy backgrounds can hurt readability fast. A cleaner pattern is one container per section with deliberate spacing and breakpoint-specific settings instead of stacking wrappers everywhere.

Last reviewed: September 28, 2026

Related Docs