1

Categories show in Menu When i install the Magento 2.2.2 v with sample data but when i install by custom theme the menu will disappear in luma default theme.

Please help me.

1
  • Did You applied that theme to use as a theme from your design configuration in your magento? Will you please elaborate your problem? Feb 10 '18 at 4:38
0

Go to app/design/frontend/Vendorname/themename/Magento_Theme/layout/default.xml then add this:

<referenceBlock name="top.links">
    <block class="Magento\Customer\Block\Account\Link" name="my-account-link">
        <arguments>
            <argument name="label" xsi:type="string" translate="true">My Account</argument>
            <argument name="sortOrder" xsi:type="number">110</argument>
        </arguments>
    </block>
    <block class="Magento\Customer\Block\Account\RegisterLink" name="register-link">
        <arguments>
            <argument name="label" xsi:type="string" translate="true">Create an Account</argument>
        </arguments>
    </block>
    <block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link"
                   template="Magento_Customer::account/link/authorization.phtml"/>
</referenceBlock>
3
  • Hello Prince, I have check the file, but unfortunately there is no folder exist which name is layout. Only exist templates and root.phtml. Feb 10 '18 at 12:16
  • You create it, you create layout folder inside app/design/frontend/Vendorname/themename/Magento_Theme/ and then you copy default.xmlfrom the original theme and you past it inside this path
    – PЯINCƎ
    Feb 10 '18 at 14:11
  • I have tried which you said. but not working. Feb 10 '18 at 16:20

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.