Changing header colors from default

Changing header colors from default

HouseofWebster
Visitor
1 0 1

Hello, I'm trying to change a piece of a timeline widget to not use the default header color setting. I'd like to change it to something specific for the page.

 

HouseofWebster_0-1736353618525.png

 

 

Reply 1 (1)

devcoders
Shopify Partner
1459 173 454

Hello @HouseofWebster 

try this code.

{
  "name": "Header Color",
  "settings": [
    {
      "type": "color",
      "id": "header_color",
      "label": "Header Color"
    }
  ]
}
<div class="timeline-widget">
  <h2 style="color: {{ section.settings.header_color }}">Your Timeline Header</h2>
</div>
Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!