Hi there,
So I’ve added a line item property but I want to format it so that it looks the same as the rest of the buttons/ variations of the listing.
Any input would be helpful, as everything I’ve tried so far doesn’t work.
A user is customizing line item properties in the Dawn theme to match the styling of existing product variant buttons and form elements.
Initial Problem:
Solution Process:
class="form__label" applies theme-consistent label styling<br> tag for spacing.svg-wrapper handles icon resizing.icon-caret styles dropdown arrowsFinal Outcome:
assets/base.cssHi there,
So I’ve added a line item property but I want to format it so that it looks the same as the rest of the buttons/ variations of the listing.
Any input would be helpful, as everything I’ve tried so far doesn’t work.
Hello @Chris_V ,
Easy little hard for layman.
Please share the product URL where you use line item.
Regards
Guleria
It’s not live yet, so I’m add the preview link:
https://2i5xz7ehnf8715tb-16238229.shopifypreview.com
I just copied the code to the main product, since the template I was testing isn’t assigned to any of the products I have in the live page.
Maybe I should use the same names, so I won’t need to assign the templates again?
Update your line item html with this one:
I added it! It works!
One more question, is there a way to format the text “Color of the Cord” to look the same as the “Quantity”?
Again update the html with this one
the difference is the
in the second line?
and class=“form__label” with this line I format the label based on the theme settings correct?
<label class="form__label">Color Of The Cord</label>
If I want to add a text box and not a drop-down menu
class="icon icon-caret"
is for the arrow
svg-wrapper does the re-sizing.
but how I format the box, so it will be the same size as the rest of the boxes ?
I’m adding a new link because the other one expired.
https://1w9nio07kd7v96v1-16238229.shopifypreview.com
Sorry for asking so many questions, I haven’t done any coding for over 15 years.
Found the solution by adding a command in the assets/base css ![]()