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 😊
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024