Shopify themes, liquid, logos, and UX
What is the liquid type name for selecting a page on a button?
{ "type": "url", "id": "shopify_page_url", "label": "Shopify Page URL", "default": "/pages/sample-page" }
"type": "url",
is correct for selecting a page on a button.
so I would implement a variable called button_redirect inside of my href?
{
"type": "url",
"id": "button_redirect",
"label": "Redirect to a page",
"default": "/"
}
EDIT: I doesn't bring me to the URL when being clicked. It does nothing as of now.
Yes btw prefix also matters
e.g.
if in settings then
{{ settings.button_redirect }}
if within the section then
{{ section.settngs.button_redirect }}
for block
{{ block.settings.button_redirect }}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025