Hello folks. I’m currently building an Ecwid Store to integrate into a Blocs site. It looks great! But I discovered that my Blocs label class colour – which was white – was making links in Ecwid invisible. I changed my label class colour in Blocs to gold. The links in Ecwid are now visible, which will be helpful for visitors to the store.
However the new gold label class colour doesn’t have enough contrast for the dark background of my original Blocs contact form. So I created a new class – called .form-label – set the text colour to white and applied it to the Name / Email / Message labels in the form. However the text for the checkbox label at the end of the form is still gold. I can’t seem to apply the .form-label class to this, and nothing I do in the .checkbox-margins class seems to have any effect.
Does anyone know of a cool trick on how to change the colour of the checkbox label, without having to change the colour of the label class? Below is a screensnap, to show you visually what my dilemma is. Thank-you!
I find it slightly frustrating that placeholder text is dark with no obvious means of making it semi transparent like it was in Blocs 2. I am away from the computer at the moment, but I found something last night that I shall try when I get back.
I’d like to find a means of changing the toggle switch colour in forms as well. It would be good if Blocs made more of these custom classes available by default.
Just tried that and confirmed it did work, however I only added the first one via the class editor and simply reduced the opacity to around 20%. I didn’t bother with any IE shenanigans etc.
Although the response from @PeteSharp worked perfectly, I’m left with a Learn More link in the cookie notification bar that is gold on a black background. This was created using the Cookie Consent Bric. Does anyone have any advice on what class I should create in my Blocs project, that will change the colour of the a.cc-link button from gold to white? Everything I try just doesn’t seem to work. Thanks in advance.
Thanks for the suggestions @PeteSharp. Unfortunately the site isn’t live, I’m hosting this iteration locally.
I’m going to give your .myForm class a whirl and see what happens.
I guess my other option is to drop the Blocs Cookie Consent bric and use the Osano Cookie Consent – which I’ve implemented in other sites. Not sure if it will throw-up the same issue though. Again, I’m going to test that today.
I’ve now managed to resolve my links colour issues. I removed the Cookie Consent bric and used code generated by the Osano Cookie Consent, as this enable users to opt-in to cookies.
I copied the following code, and in Blocs pasted it into Page > Settings > Add Code > Header
I then copied the following script, and in Blocs pasted it into Page > Settings > Add Code > Footer
In the Blocs Class Manager I created new four new class styles: .cc-message; .cc-link; .cc-allow; .cc-deny. I then set the font and colours I required for the links in this element of my site using these new styles.
Finally, I tested the site to dobule-check that the gold a.links, in my online store, remain gold, and that the contact checkbox label in my form was still white. Both are fine!