Forum
Can I include a page break inside a label within the perch:shop template?
I have the following HTML in my product.html template:
<perch:input type="hidden" name="weight" value="<perch:shop label="Shipping Weight (Soap/Shampoo: .31, Sm. Deodorant: .13, Lg. Deodorant .27, Lb of Laundry Soap: 1. Sm. Lotion Tube: .13, Lip Balm: .03)" id="productWeight" />"/>
It appears like this within the perch shop:
(Pretty cluttered, huh?)
Can I insert page breaks into the label area of this input tag, so that the information I've included in my label appears somewhat like this:
(Much easier to read!)
Thanks for the support!
I think you mean line breaks.
No, there's not option for that. Why do you have a label like that?
To apply shipping weights to the products.
I'm going to mark this as solved, though, because on further review I think I'm going to switch to doing a set of radio buttons with each product type, which applies the correct weights automatically.
The real answer to the question "why do you have a label like that" is "lack of sleep when I posted it."
Worth noting that if you do need to add instructions for an editor you can add help text, which then displays below the field, using the help attribute.
https://docs.grabaperch.com/docs/templates/attributes/help/