Shopify themes, liquid, logos, and UX
Hello,
can someone pls help me to make the text in my contact form visible? I mean the prefilled text like "Name" and "Phone number". Currently it is white so it is barely visible against the white background.
Solved! Go to the solution
This is an accepted solution.
Hi @DusanKudela,
Please change code:
.contact-form label.label--hidden {
position: relative !important;
}
This is an accepted solution.
Hi @DusanKudela,
Please change code:
.form-vertical input::placeholder,
.form-vertical textarea::placeholder {
color: #333;
}
Hello @DusanKudela Please add the below css
go to the online store > Edit code > assets > theme.css or base.css and paste this code
#contact_form input {
color: #000;
}
I tried but did not work
is there another way? I have only the theme.scss.liquid in assets
Hi @DusanKudela,
Please go to Actions > Edit code > Assets >theme.scss.liquid file and paste this at the bottom of the file:
.contact-form label.label--hidden {
color: #333;
position: relative;
}
thank you but this does not work
This is an accepted solution.
Hi @DusanKudela,
Please change code:
.contact-form label.label--hidden {
position: relative !important;
}
I would like it to look like this:
Now it is ok but not what I wanted. I will settle on yout solution. Thank you.
actually it works but differently. The text was slightly visible above the fields
Hi @DusanKudela,
With the current HTML structure, you can only display like I described, or like this:
it is ok. But when you look closer you can see the original white text in the fileds.
This is an accepted solution.
Hi @DusanKudela,
Please change code:
.form-vertical input::placeholder,
.form-vertical textarea::placeholder {
color: #333;
}
You did it!
☕
Hi @DusanKudela,
Thank you.
If you have any questions, you can contact me directly.
Happy to help you 😊
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025