Shopify themes, liquid, logos, and UX
According to everything I have done, my placeholder should appear, however, it doesnt. Cant find anything wrong in the code though.
Solved! Go to the solution
This is an accepted solution.
There is a rule in base.css which makes field input placeholders transparent.
You should try adding this to the "Custom CSS" section setting:
.field__input::placeholder {
opacity: initial;
}
This is an accepted solution.
Hi @Sten21 ,
Replace this code
<input class="field__input font-preview__input" form="product-form-template--19010366800139__main" type="text" id="your-label" name="properties[Namn att printa]" placeholder="Skriv din text här" style="padding: 10px; margin-bottom: 10px; font-size: 18px; border: 2px solid #ccc; border-radius: 5px; width: 100%;" maxlength="5" required="">
This correct code
<input form="product-form-template--19010366800139__main" type="text" id="your-label" name="properties[Namn att printa]" placeholder="Skriv din text här" style="padding: 10px; margin-bottom: 10px; font-size: 18px; border: 2px solid #ccc; border-radius: 5px; width: 100%;" maxlength="5" required="">
Thanks!
Hello @Sten21
Can you share store URL?
Hello,
Welcome to the Shopify Community.
I read your problem and it seems that I need to analyze your website to provide the solution here.
Would you please share your website URL and if your website is password protected then also provide the password.
This is an accepted solution.
There is a rule in base.css which makes field input placeholders transparent.
You should try adding this to the "Custom CSS" section setting:
.field__input::placeholder {
opacity: initial;
}
This worked! Thanks
This is an accepted solution.
Hi @Sten21 ,
Replace this code
<input class="field__input font-preview__input" form="product-form-template--19010366800139__main" type="text" id="your-label" name="properties[Namn att printa]" placeholder="Skriv din text här" style="padding: 10px; margin-bottom: 10px; font-size: 18px; border: 2px solid #ccc; border-radius: 5px; width: 100%;" maxlength="5" required="">
This correct code
<input form="product-form-template--19010366800139__main" type="text" id="your-label" name="properties[Namn att printa]" placeholder="Skriv din text här" style="padding: 10px; margin-bottom: 10px; font-size: 18px; border: 2px solid #ccc; border-radius: 5px; width: 100%;" maxlength="5" required="">
Thanks!
Many thanks!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025