I have a section in a configurable product for specifications that outputs
<div class="page-main page-main-details"><div class="columns"><div class="column main"> <div class="product-full-width-section" id="additional"> <h2 class="product-section-title">More Information</h2> <div class="additional-attributes-wrapper table-wrapper"> <table class="data table additional-attributes" id="product-attribute-specs-table"> <caption class="table-caption">More Information</caption> <tbody> <tr> <th class="col label" scope="row">Base cloth:</th> <td class="col data" data-th="Base cloth:">Linen</td> </tr> <tr> <th class="col label" scope="row">Repeat:</th> <td class="col data" data-th="Repeat:">38<span class="units">cm</span></td> </tr> <tr> <th class="col label" scope="row">Width:</th> <td class="col data" data-th="Width:">130<span class="unit">cm</span></td> </tr> <tr> <th class="col label" scope="row">Suitability:</th> <td class="col data" data-th="Suitability:">Curtains, Domestic Upholstery</td> </tr> <tr> <th class="col label" scope="row">Fabric care:</th> <td class="col data" data-th="Fabric care:">Dry Clean Only</td> </tr> <tr> <th class="col label" scope="row">Minimum order:</th> <td class="col data" data-th="Minimum order:">3<span class="units">m</span></td> </tr> </tbody> </table> </div> </div> </div> </div> </div>
Which appears at the bottom of the product page. I'd like to move but I'm struggling to identify the xml "block name" for it.
Solved! Go to Solution.
Hi @nickloat ,
Please refer vendor/magento/module-catalog/view/frontend/layout/catalog_product_view.xml
Block: Magento\Catalog\Block\Product\View\Attributes
Name: product.attributes
As: additional
Template: Magento_Catalog:roduct/view/attributes.phtml
Problem Solved? Accept as Solution!
Hope it helps!
Thanks
Hi @nickloat ,
Please refer vendor/magento/module-catalog/view/frontend/layout/catalog_product_view.xml
Block: Magento\Catalog\Block\Product\View\Attributes
Name: product.attributes
As: additional
Template: Magento_Catalog:roduct/view/attributes.phtml
Problem Solved? Accept as Solution!
Hope it helps!
Thanks
Hi Ankit
I've added…
<move element="product.attributes" destination="head.components" before="-"/>
to my themes Magento_Catalog/layout/catalog_product_view.xml file… but the block doesn't move. (I'm using head.components as a test as it's immediately obvious it's moved.)
Appreciate your thoughts as to why its not moving.
Hi @nickloat ,
It's working fine.
I have tried that in luma theme.
In your case might be conflict with any other theme or extension layout file.
Problem Solved? Accept as Solution!
Hope it helps!
Thanks