Shopify themes, liquid, logos, and UX
How do I update this code to change the color of the text link?
<a class="text" style="margin-bottom: 10px; width: 300px"
href="javascript: bl.addToRegistry({
images: '{{ product.featured_image.src | img_url: "800x" }}',
price: '{{ product.price | money_without_currency }}',
title: '{{ product.title }}',
url: '{{ shop.url }}{{ product.url }}'
Hi @Newbie10 This is Garcia from PageFly - Shopify Page Builder App
Regards your concern you can change the color of link by add this attribute to your code: style=”color:red;”
Combine with the current one it will be:
<a class="text" style="color:red;margin-bottom: 10px; width: 300px"
href="javascript: bl.addToRegistry({
images: '{{ product.featured_image.src | img_url: "800x" }}',
price: '{{ product.price | money_without_currency }}',
title: '{{ product.title }}',
url: '{{ shop.url }}{{ product.url }}'
You can change the red value to any color you want
Hope it helps!
Cheers,
Garcia
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Unlock the secrets to a record-breaking BFCM with PageFly and Canva
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from the Free plan. Live Chat Support is available 24/7.
Hi @Newbie10
Please update style code in your HTML from this
style="margin-bottom: 10px; width: 300px"
To this
style="margin-bottom: 10px; width: 300px; color: #your-hex-code;"
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hi @Newbie10
Try this code.
<a class="text custom-link" href="javascript: bl.addToRegistry({
images: '{{ product.featured_image.src | img_url: "800x" }}',
price: '{{ product.price | money_without_currency }}',
title: '{{ product.title }}',
url: '{{ shop.url }}{{ product.url }}'
})">Link Text</a>
Hi @Newbie10,
I have reviewed your requirement, you just need to add attribute color in your code and the issue will be resolved.
In example I add "color:blue" in your code:
<a class="text" style="margin-bottom: 10px; width: 300px; color: blue"
href="javascript: bl.addToRegistry({
images: '{{ product.featured_image.src | img_url: "800x" }}',
price: '{{ product.price | money_without_currency }}',
title: '{{ product.title }}',
url: '{{ shop.url }}{{ product.url }}'.
Hope it helps!
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
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