0

I want to remove create an account link. can you help me how can I do?

enter image description here

1
  • Hello @kiran, did Brockfast's solution worked ? – Pawan Aug 30 '18 at 3:31
2

Try this

If you extended Luma Theme

app/design/frontend/Vendor/m/Magento_Theme/layout/default.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body> 
            <referenceBlock name="register-link" remove="true" />           <!--for Create Account Link-->
    </body>
</page>

if you want to remove OR

Add this less

.header.panel  {
    > .header.links {
        > .authorization-link {
            &:after {
                display: none;
            }
        }
    }
}

OR

Add this css

.header.panel > .header.links > .authorization-link:after {
    display: none;
}
2
  • I tried and create an account removed but i want to remove OR also – kiran Aug 30 '18 at 13:26
  • answer is update can you check please – Magento Developer Aug 30 '18 at 14:06
2

To remove "Create an Account" link add below code in the default.xml

app/design/frontend/Vendor/Theme/Magento_Theme/layout/default.xml

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="register-link" remove="true"/>
    </body>
</page>
3
  • thanks but i want to remove OR also ex. Sign in Or create an account? – kiran Aug 30 '18 at 13:54
  • Or will disappear automatically if you add this. Did in my case, at least. – brackfost Aug 30 '18 at 14:11
  • i check inspect element and code <li class="authorization-link" data-label="or"> <a href="evolutioncorp.club/customer/account/login"> Sign In </a> </li> if i remove data-label =or then it's correct so which file i need to change. – kiran Aug 30 '18 at 14:43
0

Throwing <referenceBlock name="register-link" remove="true"/> into your theme's default.xml will take care of it.

0

To Remove "Create an Account" link create default.xml under to your theme like "app/design/frontend/Theme/Demo/Magento_Customer/layout".

<?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <body>
            <referenceBlock  name="register-link" remove="true"/>
        </body>
    </page>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.