Magento2

How to remove header links in Magento 2

Please follow the below instructions : Step 1 :- Go to app/design/frontend/VenderName/ThemeName/Magento_Theme/layout/default.xml Step 2 :- Copy below Code <referenceBlock name=”wish-list-link” remove=”true”/> <referenceBlock name=”catalog.compare.link” remove=”true”/> Step 3 :- Paste this code in default.xml before body tag () and save it. It will remove the links from the header

How to remove compare link on Magento2 header

Step 1 :- Go to app/design/frontend/VenderName/ThemeName/Magento_Theme/layout/default.xml Step 2 :- Copy below Code <referenceBlock name=”catalog.compare.link” remove=”true”/> Step 3 :- Paste this code in default.xml before body tag () and save it. It will remove the links from the header

How to Change Magento 2 Favicon

Today I will show you how you can change favicon on magento2 site. Follow the below steps : 1- go to Content -> Design -> Configuration 2- Click on HTML Head settings tab 3- Upload your favicon and save configuration. 4- Refresh the Cache

How To Get Base, Media, Link Url In Magento2

To get URL in magento2, you have to first create instance of \Magento\Framework\App\ObjectManager to get current store: $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); //instance of\Magento\Framework\App\ObjectManager $storeManager = $_objectManager->get(‘Magento\Store\Model\StoreManagerInterface’); $currentStore = $storeManager->getStore(); To get base URL: 1 2 3 $baseUrl = $currentStore->getBaseUrl(); //Output link will be like this: To get media base URL: 1 2 3 $mediaUrl = $currentStore->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA); …

How To Get Base, Media, Link Url In Magento2 Read More »

How to Enable Template Path Hints in Magento 2

Steps to turn on template path hints in Magento 2: Go to Magento 2 admin panel and login with your credentials. Go to Stores –> Configuration. Select Developer option from the Advanced tab at the end. Open Debug dropdown and set Enabled Template Path Hints for Storefront to yes. Click to Save Config.

How to Change Magento 2 Logo

Here are the steps that you will follow to change Logo in Magento 2 Go to your Magento 2 admin. Go to STORES > Configuration > Design > Header Click Choose file and select your logo Click Save Config