Changing the font colours in a form


#1

How can i change the font colour in a form. a custom class doesn’t work. The colour still grey. Thanks.


#2

The class has to be applied to all the fields in the form. You can’t just use a class for the whole form. Click on a individual field and then apply a class to that field.

@Eldar at the Bloc Master website has some great core training for blocs. It’s really worth the money, and all of the elements used in blocs have individual videos. The core training is organized really well and serves as a great reference for not only learning Blocs but reviewing how to use core elements.

http://blocsmaster.com

Casey


#3

Hi Casey1823, thanks for response. I did it. Every field has a class. But I can change the colours for the typing text but not for the placeholder text.


#4

Placeholder text uses the same text you use when you to fill out the form. You can create a class for user input text and this will change the placeholder text. You just can change them individual.

Casey


#5

sorry, that doesn’t work. the placeholder text should be white. the placeholder text still grey. See the image. What is wrong?


#6

Maybe you can’t? You can control the text a user inputs using a class but it does not change the placeholder text.

Casey


#7

Hi @RME

You can use the class “.form-control” to set the color of the input fields.

Here’s a quick video!

I hope that was what you were looking for.

Cheers


#8

Hello @Jakerlund,

I am away from my computer, so I can’t find the solution myself, but I don’t think class .form-control will solve the issue. As I understand, the problem is with the color of placeholder text. I think .form-control will change the color of the input text, but not the placeholder text.

If you know the class for the placeholder text, it will solve the issue for @RME


#9

Hello @Eldar

Ok now I get it.

To control the color of the “actual” :roll_eyes: placeholder text.

placeholder

Paste the code from this file
into the “Page Settings > Add Code > Head Code” and edit the color value to your liking.

page-settings


#10

Interesting! Does Blocs strip out the :: marks if you try to add these classes via the class manager?


#11

Hey! Yes, it does.


#12

Ok I’ll stop that in the next beta.


#13

Yup, tried this to…


#14

Hey Guys, thanks for your support and the solution :slight_smile:


#15

Blocs build 2.5 build 7 now lets you input these classes via the Class Manager :+1: