你可以在 HTML <a>
标签中使用 markup tags,这样可以让链接指向您网站上的任何页面。链接可以放置在内容页面,blocks,banners,email 和 newsletter 模板中。您还可以用它让图片指向特定的页面。
第一步:确定目标 URL
你可以在浏览器地址栏中整个复制目标 URL 的地址,我们需要的是你域名后的部分。或者可以查看 CMS 页面的的 URL Key
Full URL to Category Page
http://mystore.com/apparel/shoes/womens
http://mystore.com/apparel/shoes/womens.html
Full URL to Product Page
http://mystore.com/apparel/shoes/womens/nine-west-pump
http://mystore.com/apparel/shoes/womens/nine-west-pump.html
Full URL to CMS Page
http://mystore.com/about-us
第二步:Add the Markup to the URL
store URL markup tag 代表的是 Base url 部分,就像这样:http://mystore.com/
。有两种用法:
store direct_url
:Base url
store url
: 可以加参数的
好了,如果我想要一个http://mystore.com/apparel/shoes/womens
,应该怎么用呢?
{{store url='apparel/shoes/womens'}}
这样应该就懂了。
第三步:Complete the Anchor Tag
要把上面的地址放到<a>
中,就像下面这样
<a href="{{markup tag goes here}}">Link Text</a>
举个例子:
<a href="{{store url='apparel/shoes'}}">Shoe Sale</a>
注意引号的用法。