Changing the color of a specific phrase/word in product title?

Changing the color of a specific phrase/word in product title?

WillIFM
New Member
5 0 0

Hello!

Im looking for some help in regards to changing a specific word/phrase color in a product title and/or product heading text

Example:  

FRED WILDA "SCORZALITE / CHARLES DAVIS MINE" PRINT

https://inveniofineminerals.com/products/fred-wilda-wulfenite-pyromorphite-easthampton-ma-print

The product title is both the text of the button and the heading for the product page so I would like the color change to be present for both - Hope that makes sense - Thanks in advance!

 

Replies 9 (9)

theycallmemakka
Shopify Partner
1663 397 418

Hi @WillIFM ,

 

This cannot be done my adding CSS. We will have to add meta field to make this possible.

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: [email protected]

WillIFM
New Member
5 0 0

Appreciate the reply - Can you point me to a tutorial on how I can do this? Thank you.

theycallmemakka
Shopify Partner
1663 397 418

Are you comfortable with meta field? If yes, you can follow below steps to achieve this.

Step 1: Create a meta field that can store product title. This will store html version of the title example <span>FRED WILDA</span> "SCORZALITE / CHARLES DAVIS MINE" PRINT

Step 2: On the main-product template, replace the default title with the meta feild

Step 3: Update the CSS as per your need.

 

As you are using a different theme i cannot provide the exact codes. If you are not comfortable with meta field, do let me know. I can help you update the theme. 

 

I have been able to use this on my theme https://mangit.myshopify.com/products/copy-of-adidas-mens-postmove-mid-basketball-shoes

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: [email protected]

WillIFM
New Member
5 0 0

My theme allows me to add product metafields but I have never done it before - I do have experience with coding but I need assistance.

 

Thank you 

Raj-webdesigner
Shopify Partner
345 85 82

Can You Try My Code

 

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-[email protected]


WillIFM
New Member
5 0 0

I tired but it didn't work - I added it to the theme.css.liquid file and cleared my cached data. Any further help would be appreciated!

Raj-webdesigner
Shopify Partner
345 85 82

1) Open Edite Code

2) Find Theme.css

 

Add This Css in your Theme.css File

 

 

h1.h2.product-single__title:first-of-type::before {
    color: yellow;
    font-size: 26px;
    content: "FRED WILDA ";
}

 

 

Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-[email protected]


WillIFM
New Member
5 0 0

I'm still looking for assistance with this issue - I can arrange a payment if you can help me!

Raj-webdesigner
Shopify Partner
345 85 82

I add This Css in Theme.css And This Work Perfectly Please Make Sure What's Problem Of This Code
See This Sceenshot --->> https://prnt.sc/uzQ4p-8LsWCK

Again Try This Code Add Theme.css 

h1.h2.product-single__title:first-of-type::before {
    color: yellow;
    font-size: 26px;
    content: "FRED WILDA ";
}




Are you looking for Shopify Developer then your search is over I will help you


If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:-

❤️Tip❤️

Contect On My Mail :-[email protected]