12

How can I get (current store) Base Url in CMS block/page in Magento 2? Actually, I am displaying category names in the footer by using static block. For that how can I give the Category Url links in admin static block?

37

You can add current store URL in static block.

{{store url=""}}

If you wanto add store url with category URL.

{{store url="category-url"}}
2

You can add store URL in static block:

<a href="{{store direct_url='identifier'}}">Your link</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.