Many stores need a reduced layout without changing the theme: a B2B store without compare function, a campaign store view without navigation, a store with its own footer from a CMS block, or product pages without SKU and stock display. This module collects such switches in one configuration section. Each element can be hidden per website or store view, and header, navigation, footer and copyright can be replaced with the content of a CMS block.
Features
- Header: hide the whole header or replace it with a CMS block; or hide only the top panel, the logo, the search field or the minicart.
- Navigation: hide the main navigation or replace it with a CMS block.
- Footer: hide the footer or replace it with a CMS block; or hide only the footer links or the store switcher.
- Copyright: hide the copyright notice or replace it with a CMS block.
- Hide the breadcrumbs and the page title on all pages.
- Category and search result pages: hide the page title and the sidebar with the layered navigation.
- Product pages: hide the page title, the compare links (also in product lists, search results and product list widgets), related products, upsell products, SKU, stock status and the quantity field.
- Cart: hide the cross-sell products.
Configuration
All switches are in Stores > Configuration > Infrangible Solutions > Page Elements, grouped into “Header”, “Navigation”, “Footer”, “Copyright”, “Breadcrumbs”, “Page Title”, “Category”, “Catalog Search”, “Product” and “Cart”. Every option is “No” by default and can be set per website and store view. For a replacement, set “Replace Header” (or “Replace Navigation”, “Replace Footer”, “Replace Copyright”) to “Yes” and choose the CMS block in the field below.
Good to know
The switches act on the standard page areas of the Magento storefront layout. Themes that rename or restructure these areas may not be affected by all options.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-page-elementsThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.