Colour gradient in header

Solved

Colour gradient in header

AnjasB
Visitor
2 0 1

Hi,


I am wanting my header to have a horizontal colour gradient from RGB 46 122 123 to RGB 247 177 30, left to right. How can I achieve this?

 

Thanks in advance!

Accepted Solution (1)

websensepro
Shopify Partner
1203 131 152

This is an accepted solution.

Hi @AnjasB ,

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

<style>
.header {
    background: linear-gradient(to right, rgb(46, 122, 123), rgb(247, 177, 30)) !important;
}
</style>

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

Free Shopify Beginner Tutorial

View solution in original post

Replies 3 (3)

rifat_ShopiDevs
Shopify Partner
60 6 9

hi, @AnjasB 

Hi,

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:

 

header {
    background: linear-gradient(to right, rgb(46, 122, 123), rgb(247, 177, 30));
     padding: 20px; /* Optional: Add padding to your header */
}​

 

Copy
Hope this can help you,
Found it helpful? Please like and mark the solution that helped you.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers

Dan-From-Ryviu
Shopify Partner
9527 1913 1948

Hi @AnjasB 

.header {
    background: linear-gradient(to right, rgb(46, 122, 123), rgb(247, 177, 30)) !important;
}

You can try to add this code to Custom CSS in Online Store > Themes > Customize > Theme settings 

 

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

websensepro
Shopify Partner
1203 131 152

This is an accepted solution.

Hi @AnjasB ,

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

<style>
.header {
    background: linear-gradient(to right, rgb(46, 122, 123), rgb(247, 177, 30)) !important;
}
</style>

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

Free Shopify Beginner Tutorial