Shopify themes, liquid, logos, and UX
I created a CTA button for my website header, but I'm running into some problems with formatting. First of all, we need to remove the button from mobile version, and only display it on desktop version. Also the font size is too large and the button is in the wrong position. I'd like to place it next to the "search" icon near the right side of the header. I'd also like the button font size to match the font size of the other text in my header.
This is the code snippet I'm using in my header.liquid file:
<div style="text-align: center;" font-size: 12px;>
<a class="button-grow" href="https://www.greenvalleynutrition.com/pages/cbd-product-finder">Take the quiz</a>
</div>
Any help would be greatly appreciated!
Do it
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025