Please use below code in style tag,
.field.custom input.field__input::placeholder {
opacity: 1;
}
Please add placeholder attribute like below,
Please let me know whether it is useful for you.
A user is attempting to add a placeholder attribute to a custom Liquid textbox in a Shopify section but encountering issues.
Initial Problem:
Solutions Attempted:
placeholder attribute directly to the input element.Working Solution:
.field.custom input.field__input::placeholder { opacity: 1; }Status: Resolved. The combination of adding the placeholder attribute and specific CSS styling enabled the placeholder to display correctly in the custom Liquid textbox.