I want to add add-to-cart and Wishlist under catalog.topnav ( Menu ) how to add right below menu bar.
-
do you want to move minicart in navigation ?– PawanCommented Dec 27, 2020 at 7:35
-
yes, i need to move minicart below menu bar, i mean create custom space and move minicart into this space.– zusCommented Dec 27, 2020 at 7:36
-
FYI i have created custom theme inherit from blank theme.– zusCommented Dec 27, 2020 at 7:37
Add a comment
|
1 Answer
You just need to move minicart
to catalog.topnav
use :
<move element="minicart" destination="catalog.topnav"/>
at
app/design/frontend/{Packgae}/{theme}/Magento_Theme/layout/default.xml
Update I:
If you want minicart below nav you need to create a custom container and need to move it, like:
<referenceContainer name="page.top">
<container name="test" htmlTag="div" htmlClass="test-class" after="navigation.sections"/>
</referenceContainer>
<move element="minicart" destination="test"/>
-
Yes, i did same, but i need to move minicart into below menu bar snipboard.io/rq4K6i.jpg– zusCommented Dec 27, 2020 at 7:52
-
-
-
-
Thanks for the solution, its working. I just move my logo to catalog.topnav, its ok in web view but mobile view menu not wokring like three line left corner missing, Any help thanks.– zusCommented Dec 27, 2020 at 10:28