Re: Heading gradient vs solid style

Solved

Heading gradient vs solid style

JustinasR
Excursionist
22 0 7

Hi, im trying to achieve such styling for my heading. Basically 1st line gradient color, 2nd - solid. How can I do it?

 

Link: https://www.mansome.eu/?_ab=0&_fd=0&_sc=1

 

Currently this is the code I have for the section, but it gives gradient color style for the entire text, not only the 1st line. 

h1 {
  background: #e8af02;
  background: linear-gradient(to bottom, #e8af02 0%, #e7ce6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

 

JustinasR_0-1742470256774.png

 

Accepted Solution (1)

Small_Task_Help
Shopify Partner
1052 45 101

This is an accepted solution.

Hi,

 

You can try <span> and use CSS to theme

 

CSS code example

.gradient-text {
  background: linear-gradient(to bottom, #e8af02 0%, #e7ce6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.solid-text {
  color: #e8af02; /* Change to any solid color you want */
  display: block;
}
To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad

View solution in original post

Replies 7 (7)

TheScriptFlow
Shopify Partner
709 49 95

Hey @JustinasR could you please share the reference website URL so that I provide you solution code.

Thanks 

- Need a Shopify Specialist? Chat on WhatsApp Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button! And Wait Don't forget to Buy me a Coffee

JustinasR
Excursionist
22 0 7

Small_Task_Help
Shopify Partner
1052 45 101

This is an accepted solution.

Hi,

 

You can try <span> and use CSS to theme

 

CSS code example

.gradient-text {
  background: linear-gradient(to bottom, #e8af02 0%, #e7ce6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.solid-text {
  color: #e8af02; /* Change to any solid color you want */
  display: block;
}
To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad
JustinasR
Excursionist
22 0 7

Managed to get it to work thanks!

Huptech-Web
Shopify Partner
1169 234 264

Good day! @JustinasR , You can achieve this by following the steps, which I have outlined in the screenshots I provided.

1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Find the section where the 'parallax_banner' is located, and modify it as shown in the screenshots below.

Screenshot_1.pngScreenshot_2.pngScreenshot_3.png

If you found this response helpful, please do like and accept the solution, and also if you have any questions please don't hesitate to ask.
(S.P)

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
JustinasR
Excursionist
22 0 7

Sorry its not clear, do you mean I have to paste all of the 3 codes in the ss-paralax-banner.liquid  file?

Huptech-Web
Shopify Partner
1169 234 264

Hello @JustinasR, Paste this code and replace the existing <h1> tag in the section. Also, make sure to add the section schema as shown

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required