:::: MENU ::::
Posts tagged with: luma theme

Remove any link from top links Magento 2

 
Hello and welcome to qaisar satti blog. In this tutorial we will try to learn that how one can “remove any link from top links in Magento 2”.Before starting i assume that you are already performing a task and are struck on this problem. So lets get to the point and find the solution.For removing the top-link you must know the name of the link which is to be removed. For example Register-link is for register-link link.

To make it more simpler, easy to learn and for knowledge,below is the list of top-links.

Top Links



register-link                Create Account Link

authorization-link       Sign In Link

 

wish-list-link              WishList Link

 

my-account-link        My Account Link

 

Right then i believe now you know the top links, now add below code in your default.xml to remove the link. For example,if you want to remove the Create Account Link So for that you have to add below xml code.

<referenceBlock name="top.links">
        <referenceBlock name="register-link" remove="true" />          
 </referenceBlock>

 

Similarly other links can be removed too by following the above mentioned method. I hope this tutorial will help you.

Author: Qaisar Satti
Category: Magento 2
Last Modified: September 26, 2018


Override default theme template files Magento 2

In this tutorial we will discuss about the topic how to override default theme template files in magento 2. I am assuming that you are already familiar with magento 2 and has the know how, how things work in magento 2. So i will directly switch to our topic, and if you are not familiar please start from the basics.Having said that lets come to our topic, so if you are doing the custom theme then you must know how to Override default theme template files in magento 2,in your custom theme.And if you want to override all the files then simply go to.

vendor/magento/module-theme/view/frontend/

And copy the templates folder in your theme. In my case theme name is “theme”. So go to my theme folder and create the Magento_Theme Folder. And paste the templates folder there. Now your theme structure will look like this.

app/design/frontend/QaisarSatti/theme/Magento_Theme/templates

If you want to override the single file like header.phtml. Then copy the file from

vendor/magento/module-theme/view/frontend/templates/html/header.phtml

Paste it in your theme.And the file structure then will look like this

app/design/frontend/QaisarSatti/theme/Magento_Theme/templates/html/header.phtml
Author: Qaisar Satti
Category: Magento 2
Last Modified: September 26, 2018


Pages:12