# button background not changing colors

**URL:** <https://community.hubspot.com/t/button-background-not-changing-colors/80978>\
**Category:** Blog, Website & Page Publishing\
**Tags:** free\
**Created:** [May 11, 2023, 4:22am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978 "2023-05-11T04:22:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![NBriggs](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@NBriggs](https://community.hubspot.com/u/NBriggs)\
**Post date:** [May 11, 2023, 4:22am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/1 "2023-05-11T04:22:36Z")

</div>

I’ve changed the background color in the editing\>styles\>background section, updated, and published, but the background color stays the same. please help.

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [May 11, 2023, 12:59pm UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/2 "2023-05-11T12:59:35Z")

</div>

Hey @NBriggs this really depends on your page layout and the module itself. Where exactly is it you’re changing this? Is this on a specific module within the CMS editor?  
It’s possible there is custom styling overriding this. Do you have a link to the page you edited this on and a screenshot of where you’re adding these styles to try troubleshoot where this issue has come from?

---

<div class="post-metadata">

**Author:** ![NBriggs](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@NBriggs](https://community.hubspot.com/u/NBriggs)\
**Post date:** [May 13, 2023, 12:01am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/3 "2023-05-13T00:01:50Z")

</div>

I’ve tried to upload a video using the insert photo option, but file is not supported. I created a youtube video in order to upload the video. It’s set to public. When I try to insert it into this message, says it needs to be public. How do I show you the video I made of my screen showing the problem?

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [May 17, 2023, 10:06am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/4 "2023-05-17T10:06:07Z")

</div>

Hmm, it looks like there’s some styling in the header of the template, page or domain that’s overriding this and telling the button to always be black:

 ![TomM2_0-1684317748764.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/d/dd25613bc4a74475bddfe3e0c63ae1b31d4066b6.png)

I’d check through the head styles (a guide on that can be found here) for this specific code:

```lia-code-sample
#hs-button_widget_1683935321253 {
 background-color: rgba(0, 0, 0,1.0);
 color: #FFFFFF;
 font-size: px;
}

```

Removing this will allow the editor styles to be pushed through.

---

<div class="post-metadata">

**Author:** ![NBriggs](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@NBriggs](https://community.hubspot.com/u/NBriggs)\
**Post date:** [May 18, 2023, 3:44am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/5 "2023-05-18T03:44:54Z")

</div>

There is no link to the guide or it doesn’t link from my email.  
Tried to maybe figure out on my own. I went to settings-advanced options-additional code snippets and there were no snippets

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [May 18, 2023, 11:54am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/6 "2023-05-18T11:54:09Z")

</div>

Hey @NBriggs strange, I don’t know why the link didn’t come through. There’s a doc on head code here though:

> **[Use code snippets with HubSpot content](https://knowledge.hubspot.com/website-and-landing-pages/use-code-snippets-with-hubspot-content)**
>
> Learn how to add custom code snippets to the header and footer of individual pages or across entire HubSpot-hosted domains.

---

<div class="post-metadata">

**Author:** ![NBriggs](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@NBriggs](https://community.hubspot.com/u/NBriggs)\
**Post date:** [May 13, 2023, 12:18am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/7 "2023-05-13T00:18:21Z")

</div>

![6D0CAEC3-CF1D-4572-BEDA-AA068EFB8DBE.jpeg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/da23d5ad8c350f978824b9830ee7032d53a66a30.jpeg)

Trying to change the background color of the button to match the tan color below it. I know how to match the color, just used the blue for explainaiton purposes

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [May 15, 2023, 11:13am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/8 "2023-05-15T11:13:36Z")

</div>

Hey @NBriggs if you click the link at the bottom of the panel on the left “can’t see your updates? Click here” does that change the colour at all?  
If not there’s likely some CSS styling somewhere overriding the module’s settings, if you want to send on a link to your page I can take a look for you if you like!

---

<div class="post-metadata">

**Author:** ![NBriggs](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@NBriggs](https://community.hubspot.com/u/NBriggs)\
**Post date:** [May 17, 2023, 12:53am UTC](https://community.hubspot.com/t/button-background-not-changing-colors/80978/9 "2023-05-17T00:53:38Z")

</div>

The “Can’t see your updates?” Does not change anything.

> **[Home](https://bbmobileservices.com)**
>
> Mobile Notarizations, Chauffeur Services, Wedding Officiation, Passport Photos, Immigration Forms Services, and much more. Notary, Portland tours, driver
