B-219 Sec-55 Noida, India
+918010221733

Add links in Magento

Today we’re going to see how to add them to a Static Block or a Page (under your CMS panel).

Example:

If you want to add a link to the page About Us in your footer. How you do that?

If you try this code it will only work for the default lenguage. We need Magento to build a link with our lenguage tag.

<a href=”/about-us”>About us</a>

What we need is something like http://my_site.com/en/about-us

So we will use Magento shortcodes. You will need to write the page identifier after the direct_url:

<a href=”{{store direct_url=’about-us’}}”>About us</a>

Using the structure above it will build links dinamically with everything it needs in the url.

(Visited 42 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.