liquid icon indicating copy to clipboard operation
liquid copied to clipboard

font_url displays error with preload_tag due to whitelist

Open skooch opened this issue 1 year ago • 1 comments

Hey, i'm having this issue with

{{ settings.type_body_font | font_url | preload_tag: as: 'font', type: 'font/woff2', crossorigin: 'anonymous' }}

and getting the Liquid error

Input must be a theme or shop asset URL.

Related: #1738

skooch avatar Dec 10 '23 01:12 skooch

settings.type_body_font is a Shopify Font, example:

//<shopify>/cdn/fonts/rockwell/rockwell_n7.d323c91936400f00c1acd51d95a6cdaa9a98f8db.woff2

skooch avatar Dec 10 '23 01:12 skooch

@ianks @ggmichaelgo Hey team :wave: would you happen to know why many issues and pull requests are going without triage on this repository? Is it in maintenance mode? Should I be escalating the issues I'm experiencing through Shopify support?

Just feeling a bit lost here!

skooch avatar Apr 07 '24 05:04 skooch

Hello @skooch ! I apologize for the late reply on your issue 🙏 The font_url is not a filter from the Liquid gem; it is a custom Liquid filter from Shopify. There are many other filters that are only available through Shopify Themes. (Shopify Liquid Doc / Font URL doc)

For Shopify Theme development issues, it is best to reach out to the Shopify support team. The Liquid repo's Github Issue shouldn't be used for Shopify theme development supports since it is dedicated to the core functionality and development of the Liquid gem itself.

Thank you for your understanding and cooperation.

ggmichaelgo avatar Apr 10 '24 20:04 ggmichaelgo