So I have this container defined in the default.xml file (the one that overrides the default layout of the Magento_Theme module):
<Vendor>
|----<Theme>
|----Magento_Theme
|----layout
|----override
|----base
|----default.xml
and I would like to add some specific class only when we are in the homepage ("/" or “/home”).
This “container” has a name attribute of “header.top-section.wrapper” and I’ve tried to add this:
<referenceContainer name="header.top-section.wrapper" htmlClass="top-section-wrapper home-transparent" />
in Content -> Pages -> My Home Page -> Design -> Layout Update XML and I still can’t see any difference as this doesn’t seem to work.
This is killing me as I can’t find anything anywhere on how to solve this…