Shopify themes, liquid, logos, and UX
Hi,
I'm using the Cascade theme, which comes with a pop-up block in the product template. I will use this as a contact button that brings up a contact form. I would like the link to look like the "add to cart" button but use our secondary color scheme.
Here is the code for the product-block-popup.liquid:
<div
class="{{ block_base_classes }} my-3 group-first:mt-0"
data-disable-variance
{{ block.shopify_attributes }}
>
<a
class="text-theme-basic flex items-center group break-word"
href="#Popup-{{ section.id }}-{{ block.id }}"
@Click.prevent="$store.modals.open('#Popup-{{ section.id }}-{{ block.id }}')"
role="button"
>
{% render 'product-icon',
icon: block.settings.icon,
classes: 'text-xs mr-3 w-4 h-4 shrink-0 group-hover:fill-scheme-accent'
%}
<span class="theme-link group-hover:text-scheme-accent">
{{- block.settings.link_label | escape | strip -}}
</span>
</a>
</div>
Hey @winstonmaz,
Add the button secondary class to the link
The whole code should be
<div
class="{{ block_base_classes }} my-3 group-first:mt-0"
data-disable-variance
{{ block.shopify_attributes }}
>
<a
class="button button--secondary text-theme-basic flex items-center group break-word"
href="#Popup-{{ section.id }}-{{ block.id }}"
@Click.prevent="$store.modals.open('#Popup-{{ section.id }}-{{ block.id }}')"
role="button"
>
{% render 'product-icon',
icon: block.settings.icon,
classes: 'text-xs mr-3 w-4 h-4 shrink-0 group-hover:fill-scheme-accent'
%}
<span class="theme-link group-hover:text-scheme-accent">
{{- block.settings.link_label | escape | strip -}}
</span>
</a>
</div>
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025