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?
- 
 Refer link may get help emagentosupport.com/2018/12/…Denish Vachhani– Denish Vachhani2018年12月09日 12:32:43 +00:00Commented Dec 9, 2018 at 12:32
3 Answers 3
You can add current store URL in static block.
{{store url=""}}
If you wanto add store url with category URL.
{{store url="category-url"}}
You can add store URL in static block:
<a href="{{store direct_url='identifier'}}">Your link</a>
- 
 1This is working for Magento 2.4 and above versionsArun Kumar– Arun Kumar2022年11月03日 07:19:11 +00:00Commented Nov 3, 2022 at 7:19
- 
 Thanks, happy to help @arun-sharmaSIDDHANT JAIN– SIDDHANT JAIN2024年12月19日 12:58:31 +00:00Commented Dec 19, 2024 at 12:58
{{store url="category-url"}}
Explore related questions
See similar questions with these tags.