x

Change Color of "INDICATES REQUIRED FIELD" Label

I know that the label above forms can't be removed right now, but does anyone know of a way to at least change the color of it in the code? Mine shows up as white on my white background because of the theme I'm using (had to use the dark high contrast theme to get the header and buttons to look how I wanted) which makes it an unreadable and useless feature of a form. I've tried tweaking the code myself, but I'm not a programmer and it's been no use. If anyone has any idea what to do to change the color of those words to black, please let me know. 

Site is: https://testingkerri123.weebly.com
You have to highlight it to even read the words :(

8,428 Views
Message 1 of 16
Report
2 Best Answers

Best Answer

I had someone who writes code help me with this, and if you use the html code below in the footer of your website, it will hide that stupid "Indicates required field" label that Weebly deployed. It's so annoying and I asked for help from Weebly and they just told me to remove the required field option on all my fields. THAT is not the work-around. You shouldn't have to see that label. Especially when you have fields lined up horizontally and it throws the first field down in alignment. Sorry, for the rant, but here is the code to put in your footer to hide the label. Just used the html widget to add it to your footer. As for changing the color, they've changed where that is in the html editor, can't help you with that one.

<style>
.wsite-form-label.wsite-form-fields-required-label {
display:none !important;}
</style>

View Best Answer >

8,383 Views
Message 17 of 16
Report
Square

Best Answer

If you want to keep the label but make it visible, you can also use this (added to the Header Code field for the page):

<style>
.wsite-form-label.wsite-form-fields-required-label { color: red !important; }
</style>

View Best Answer >

8,380 Views
Message 17 of 16
Report
15 REPLIES 15
Square

I'm not sure of the code you would use to change the text, but you could use the Color Block app from the App Center! This way you can change the background color of just the contact form element. 

https://www.weebly.com/app-center/color-block?ref=ac-search

8,409 Views
Message 17 of 16
Report

Neat....another way to skin a cat.

8,402 Views
Message 17 of 16
Report

Best Answer

I had someone who writes code help me with this, and if you use the html code below in the footer of your website, it will hide that stupid "Indicates required field" label that Weebly deployed. It's so annoying and I asked for help from Weebly and they just told me to remove the required field option on all my fields. THAT is not the work-around. You shouldn't have to see that label. Especially when you have fields lined up horizontally and it throws the first field down in alignment. Sorry, for the rant, but here is the code to put in your footer to hide the label. Just used the html widget to add it to your footer. As for changing the color, they've changed where that is in the html editor, can't help you with that one.

<style>
.wsite-form-label.wsite-form-fields-required-label {
display:none !important;}
</style>

8,384 Views
Message 17 of 16
Report
Square

Best Answer

If you want to keep the label but make it visible, you can also use this (added to the Header Code field for the page):

<style>
.wsite-form-label.wsite-form-fields-required-label { color: red !important; }
</style>
8,381 Views
Message 17 of 16
Report

Being a programmer by profession, I'm completely comfortable patching code.  However, I know next to nothing about HTML.  Can you be more specific about where to put these three lines of code:

<style>
.wsite-form-label.wsite-form-fields-required-label { color: red !important; }
</style>

I don't know what "the Header Code field for the page" is.  Thanks.

4,990 Views
Message 17 of 16
Report
Square

The header code field can be found in Settings > SEO > Header Code. It would also work if added to the Footer Code field in the same place, although it usually makes more sense to keep any CSS rules in the <head> area of a site.

4,984 Views
Message 17 of 16
Report

 
8,348 Views
Message 17 of 16
Report

Perfect, works as described, thanks CP3.
8,346 Views
Message 17 of 16
Report

Happy to help! Smiley Happy

8,303 Views
Message 17 of 16
Report

This is the correct answer!  Thanks for helping me remove it CP3! Smiley Happy

4,950 Views
Message 17 of 16
Report

My pleasure! Smiley Happy

4,943 Views
Message 17 of 16
Report

You're a lifesaver!

Or at least a website saver.

https://dressscore.weebly.com/

1,713 Views
Message 17 of 16
Report

Worked fo rme too!  Super great! Thank you!

1,674 Views
Message 17 of 16
Report

awesome! worked perfect

1,540 Views
Message 17 of 16
Report

Gnial !!
Gracias
1,524 Views
Message 17 of 16
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.