FoP
Member
So I want to add a link to an About Us page in the footer and have been playing in a demo with it.
First I went this route:
-create a phrase
-create a page
-modify the page container, insert this code into the footer:
<div class="footer-button">
<a href="{{ link('pages/about-us') }}" class="button">About Us</a>
</div>
The button worked fine, linking to the About Us page but getting the button in the right place and styling it was a problem. After putting some code in extra.less this was my best result:
What I want however is to have a discreet link like the ones already there and positioned let's say, before "Contact us".
So then I just put in a link with this code in the footer, right after linkList:
<li><a href="pages/about-us/" target="_blank">About us</a></li>
That worked beautifully:
Except the link opens the About us page in a new tab. So, my question is how do I get the link to open the About us page in the same tab, like the other links there do?
Or is this a bad way to do it?
First I went this route:
-create a phrase
-create a page
-modify the page container, insert this code into the footer:
<div class="footer-button">
<a href="{{ link('pages/about-us') }}" class="button">About Us</a>
</div>
The button worked fine, linking to the About Us page but getting the button in the right place and styling it was a problem. After putting some code in extra.less this was my best result:
What I want however is to have a discreet link like the ones already there and positioned let's say, before "Contact us".
So then I just put in a link with this code in the footer, right after linkList:
<li><a href="pages/about-us/" target="_blank">About us</a></li>
That worked beautifully:
Except the link opens the About us page in a new tab. So, my question is how do I get the link to open the About us page in the same tab, like the other links there do?
Or is this a bad way to do it?