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.

  • 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

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">
            <argument name="label" xsi:type="string" translate="true">My Account</argument>
            <argument name="sortOrder" xsi:type="number">110</argument>
    <block class="Magento\Customer\Block\Account\RegisterLink" name="register-link">
            <argument name="label" xsi:type="string" translate="true">Create an Account</argument>
    <block class="Magento\Customer\Block\Account\AuthorizationLink" name="authorization-link"
  • 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.