skip to Main Content

I have created a About us page from backend and trying to link that page to the About-us at the footer. I am using:

<a href="<?php echo $this->getUrl(''); ?>about-us"></a>

After clicking on About Us It’s working. URL: http://localhost/magento2/about-us but there is a blank page, no header and footer.

2

Answers


  1. Use this code to call your page in cms content to call URL directly

    {{store direct_url=about-us}}
    
    Login or Signup to reply.
  2. you can do it by using Mage:

    <a href="<?php echo Mage::getUrl('about-us'); ?>">About Us</a>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search