If you want to set a different look for a specific category, then you can make new layout for that category like below.
First you need to create new file under your theme Magento_Catalog\layout\catalog_category_view_id_{{id of category}}.xml
then you can move and add your block which you need to require like below
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="columns.top"> <container name="category.view.custom" htmlTag="div" htmlClass="newconwrap" after="-"/> </referenceContainer> <move element="category.image" destination="category.view.custom" before="-"/> <move element="category.view.container" destination="category.view.custom"/> </body> </page> |
Note: I have tried this way with Magento 2.4.3
[crayon-62fe64dd8467c436654435/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...