On 3 of my products I wanted to change the look & feel along with the layout
As an example, I want to move the product title so I have created a new child theme like below
/app/design/frontend/[Vendor]/[Child_Theme_Name]/Magento_Catalog/layout/catalog_product_view.xml
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<move element="page.main.title" destination="main" before="-"/>
</body>
</page>
/app/design/frontend/[Vendor]/[Child_Theme_Name]/registration.php
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'frontend/[Vendor]/[Child_Theme_Name]',
__DIR__
);
/app/design/frontend/[Vendor]/[Child_Theme_Name]/theme.xml
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Child Theme Name</title>
<parent>[Vendor]/[Parent_Theme_Name]</parent>
<media>
<preview_image>media/preview.jpg</preview_image>
</media>
</theme>
In the admin, I have selected that child theme and then cleared all the cache
Unfortunately, the product detail page then doesn't change. If I make that change in the parent theme the product detail changes but it naturally affects all products which I don't want.
Can anyone advise on what I am doing wrong?