We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [containers]

Denotes questions related to Magento 2 containers.

Filter by
Sorted by
Tagged with
11
votes
1answer
11k views

Magento 2: How to add text within container via XML

I am attempting to render a single line of text prior to a Link list in the footer. Creating a template file to do this seems to be a waste of resources for this task. As I understood it, I could ...
11
votes
2answers
35k views

Move blocks to other container how to

Being newby I look for a workaround to move Sign in and Store switcher from header.panel to header.container. I just tried this code but won't work <referenceContainer name="header.container"> ...
3
votes
1answer
7k views

How to add extra container to page header in Magento 2

I am working on a new theme which is based on the Luma theme. I need to add a extra container to page header.my problem is that I can't identify how/where to add this. Can anyone advise on what page ...
4
votes
3answers
6k views

Magento 2 container custom attribute

Have hunted round for this but can't find an answer. As the title suggests I want to add a custom attribute to a container. I currently have a container in layout.xml as such; <container name="my....
2
votes
1answer
6k views

Creating custom header extending Magento blank in Magento 2

I am trying to create a theme with Magento Blank as parent in Magento 2 but I can't figure it out how to change the header with a custom one. I first remove header.container from magento blank and ...
8
votes
3answers
9k views

Is it possible to remove elements in a page layout in Magento2?

When I read the documentation on page-layouts (http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/layout-types.html#layout-types-page) I see that the following instructions in this XML ...
1
vote
1answer
91 views

Conditionally removing a container

I am trying to replace the customer.login.container on the login page, which can be done through customer_account_login.xml by adding something like: <referenceContainer name="customer.login....
1
vote
2answers
454 views

Create new containers and move inside others

How do I create a new container referencing a parent container and move inside other containers. What I try <referenceContainer name="content"> <container name="product.container" ...