Shopify themes, liquid, logos, and UX
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:
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!
Hi @WillIFM ,
This cannot be done my adding CSS. We will have to add meta field to make this possible.
Appreciate the reply - Can you point me to a tutorial on how I can do this? Thank you.
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
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
Can You Try My Code
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.
Contect On My Mail :-[email protected]
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!
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 ";
}
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.
Contect On My Mail :-[email protected]
I'm still looking for assistance with this issue - I can arrange a payment if you can help me!
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 ";
}
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.
Contect On My Mail :-[email protected]
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024