Let’s initiate a discussion!!
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
The search box is the most underrated functionality that is...
Managing and customizing Magento site can be a daunting task,...
Having an in-house eCommerce developer is very costly, and it...
Have you wonder why your conversions are less compare to...
According to a research, around 68% of eCommerce stores are...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.