Posts By: S.S.Niranga
If you need to remove any part or a section of a Layout, follow the below steps.
Login to M2 Admin> Go to the content -> pages & select the page you want to layout change > Select Design tab and add in what you want to remove from Layout Update XML
<referenceBlock name=”footer” remove=”true”/>
<referenceBlock name=”header.panel” remove=”true”/>
<referenceBlock name=”catalog.topnav” remove=”true”/>
<referenceBlock name=”breadcrumbs” remove=”true”/>
If you need to add a body class for a page , please use below steps.
> Login to M2 Admin > Go to the content -> pages & select the page you want to add a body class > Select Design tab and add in what you want to add a class from Layout Update XML
<attribute name=”class” value=”service-unavailable”/>
Please add below code into your CSS file,
There are client requirements that we come across where we need to create Countdown timers for specific Categories or products. This tutorial will show you how to create a one using Magento 2 Built-in functionality.
Let’s assume that we need to have a promotion call “Hot Deals” and need to have selected products to this offer and we need to have “Sales End In” Countdown timer on top of the products. (more…)
When you try to run Magento 2 and if you get above error,
copy this code
Go to your Magento 2 root folder.
Open the Git Bash ( I think this will work on command prompt as well )
Paste the code and Enter.
It will execute and once it completed, Run Magento 2.