Landing pages
Landing pages are often used to showcase a specific selection of products (dedicated, for example, to events or activities) while adding unique descriptions and images, and setting distinguish configurations for search engines.
This section describes settings for landing pages. They are located in Content -> Landing Pages -> Add landing page/Edit landing page.
To create or update many landing pages at once, use the CSV import and export. See how to import and export landing pages.
- Active: this slider enables or disables the page.
- Store view: store views where this page will be displayed.
- Enable redirect: if enabled, redirects to this landing page when all configured conditions are matched (categories, search term, filters).
note
Redirect to the landing page will work when customer's selection matches configurations from Products section:
- If only Filters set, redirects from
All productspage when selecting matching Filters and options. - If only Categories set, redirects from the appropriate category.
- If only Search term set, redirects when store search request matches Search term.
- If Filters and Categories set, redirects when selecting the specified option in the Filter in defined Category.
- If Filters, Categories and Search term are configured, redirects from the search results page (search request must be the same as a Search term) when matching Filters are chosen and Category selected in a category filter.
- If only Filters set, redirects from
- Name: name of the page.
Search Engine Optimization
We recommend consulting with your SEO specialist to determine the most effective solution.
- URL key: URL key of the page.
- Page title: title of the page.
- Meta title: meta title of the page.
- Meta description: meta description of the page.
- Robots meta tags: page visibility for search engine crawlers:
- NOINDEX, NOFOLLOW
- NOINDEX, FOLLOW
- INDEX, NOFOLLOW
- INDEX, FOLLOW
Content
- Description: description of this page.
- Bottom CMS block: selector of content block displayed at the bottom of the page. The option Select block means no block is applied.
- Top CMS block: selector of content block displayed at the top of the page. The option Select block means no block is applied.
- Layout update XML: field for custom XML structure to update the layout of the page.
Landing pages show only the sidebar filters. Filters that you moved to the Horizontal bar in the Filters manager are not displayed on landing pages by default. To show the horizontal bar on a landing page, add the following code to its Layout update XML field:
<referenceContainer name="content">
<container name="m.horizontal.navigation.container" htmlTag="div" htmlClass="mst-nav__horizontal-bar" before="-">
<block class="Mirasvit\LayeredNavigation\Block\NavigationHorizontal\Category" name="m.catalog.horizontal" before="-" template="Magento_LayeredNavigation::layer/view.phtml">
<block class="Mirasvit\LayeredNavigation\Block\Navigation\State" name="m.catalog.navigation.horizontal.state" as="state"/>
<block class="Mirasvit\LayeredNavigation\Block\Renderer\FilterRenderer" name="m.catalog.navigation.horizontal.renderer" as="renderer" template="Magento_LayeredNavigation::layer/filter.phtml"/>
</block>
</container>
</referenceContainer>
Save the landing page and clear the Magento cache.
Products
- Categories: selector of categories which products displayed on the landing page.
- Search term: search term to show only matching it products.
- Filters: table with filters and their options used to show only matching them products. Add record button adds a filter.
- Let shoppers leave this page through its filters: lets shoppers go from the landing page to its category by changing the filters of the page. It is disabled by default. The setting works only when the page has exactly one category and no Search term. For other pages it has no effect.
note
When this setting is enabled:
- The filters of the page are shown as selected in the layered navigation, and the breadcrumbs show the category before the landing page.
- Removing a filter of the page, or clicking Clear All, opens the category page. Other filters selected by the shopper stay applied.
- Another option of a page filter works the same way as on the category page with the same filters applied. If Enable multiselect is active for the attribute, the option is added and the category page opens with both options. Otherwise, the other options are hidden, and the shopper removes the filter of the page first.
- Filters that are not part of the landing page keep the shopper on the landing page.
- With the filter Apply button, the product counts and the target URL come from the category page.