How to change the color of this text link

How to change the color of this text link

Newbie10
Tourist
13 0 3

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&colon; bl.addToRegistry({
images: '{{ product.featured_image.src | img_url: "800x" }}',
price: '{{ product.price | money_without_currency }}',
title: '{{ product.title }}',
url: '{{ shop.url }}{{ product.url }}'

Replies 4 (4)

PageFly-Garcia
Shopify Partner
497 80 137

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&colon; 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.


Dan-From-Ryviu
Shopify Partner
12035 2353 2530

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.

ZestardTech
Shopify Partner
6148 1100 1477

Hi @Newbie10 

Try this code.

<a class="text custom-link" href="javascript&colon; 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>

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

BSSCommerce-B2B
Shopify Partner
1972 564 567

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&colon; 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