I have customised the mega menu and integrated it on my Magento site. Now, I need to link the categories links to its corresponding categories.

What is the correct way to link the categories in phtml file?

Looking forward your reply.


Please use below code for link in static page

<a href="{{config path="web/unsecure/base_url"}}<<YOUR CATEGORY URL KEY>>" target="_self">[Label]</a>


<a href="{{store url='YOUR CATEGORY URL KEY'}}" target="_self">[Label]</a>


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.