I want something like this <a href="<?php echo getcmsurl('Faqs')">FaQ's</a>
means on clicking FAQ's ,cms page created named faqs
from admin panel would be linked (called) and displayed.
Or is there any other way ?
Thanks.
If you are writing in phtml file then you can use
<a href="<?php echo $this->getUrl('cms page identifer'); ?>">yourlink</a>
and if you are writing in static block or page then you can use
<a href={{store url="cms page identifer"}}>your link</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With