Pages HTML can't use liquid references?

Solved
TimothyTrimble
New Member
3 0 0

I'm building some custom Pages for our store and I was wanting to use Liquid Objects to build bread crumb links at the top of the page. Such as:

<a style="color:#F0515F" href="{{ routes.root_url }}">Home</a> &gt;

<a style="color:#F0515F" href="{{ routes.root_url }}/collections/shop-by">Shop By</a> &gt; Brands

<br><br>

 

However, it appears the liquid references do not map out when used in a Page HTML. Are there any shortcuts to doing this without my having to fully define the URL?

 

Thanks.

0 Likes
tim
Shopify Expert
2864 119 942

This is an accepted solution.

Any liquid entered inside page content field would not be processed. Same goes to product and collection description and so on.

However, you do not need it in your case, simple relative path, like href="/collections/shop-by" would be sufficient. Or href="/".

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
0 Likes
TimothyTrimble
New Member
3 0 0

Of course. Thanks for the feedback. Sometimes I forget to look outside of the liquid approach.

0 Likes