Is there a way for me to remove the class name 'page-main' from the 'maincontent' div and add a new class name?
Magento – Magento 2: Update the CSS class name of #maincontent
classcssmagento2xml
classcssmagento2xml
Is there a way for me to remove the class name 'page-main' from the 'maincontent' div and add a new class name?
Best Answer
If you're interested, the answer is to use a
referenceContainer
in theXML
file and add the new Class / ID names to theDIV
/XML container
.For example:
The rendered
DIV (main)
will look like:The un-edited/updated version would look like: