OCMLABS/MODULE-WORDPRESS · PAGE LAYOUT

Choose a left sidebar, right sidebar or 1 column layout for WordPress blog pages in Magento

  • Magento
  • Adobe Commerce
  • Hyvä

The Page Layout group sets where the blog sidebar goes. Listing pages and single posts have separate settings, so you can, for example, keep the sidebar on listings and give posts the full width. Added in 2.1.0.

Admin path: Stores > Configuration > OCMLabs > WordPress Integration > Page Layout

Settings

Both settings offer the same three layouts:

OptionMagento page layoutResult
2 Columns with Left Sidebar2columns-leftSidebar on the left. This is the default and matches earlier versions.
2 Columns with Right Sidebar2columns-rightSidebar on the right
1 Column (No Sidebar)1columnFull-width content with no sidebar

Listing Pages Layout

Used for the blog home, category, tag, author and search pages.

  • Default: 2 Columns with Left Sidebar

Single Post Layout

Used for single post pages.

  • Default: 2 Columns with Left Sidebar

Both can be set per website or store view.

Mobile

On phones the two columns stack. With the left sidebar, the sidebar comes before the posts, so visitors scroll past it to reach the content. If most of your blog traffic is on mobile, try the right sidebar layout and check the order on a phone.

NOTE /

These settings replace the page layout set in the module’s layout XML. If your theme sets a layout attribute in its own ocmlabs_*.xml files, the admin setting still wins. To choose the layout in code instead, add a plugin on OCMLabs\WordPressIntegration\Model\Config::getListPageLayout() or getPostPageLayout().

See also

Related pages

In this module