Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi, I have added the below code to the theme.liquid to increase the font size of variants in a dropdown menu on the product page. When I go to view the changes the size of the dropdown changes perfectly, however, it only remains for a few seconds before it goes back to a small text. To see an example, a link to the page is below. Can someone help?
Here is the syntax I used:
{% if template contains 'product' %}
<style>
.product-form__input.product-form__input--dropdown select {
font-size: 20px;
}
</style>
{% endif %}
And the link to one of the products in my store
https://www.rdrewnaturals.com/collections/feminine-care/products/foam-wash
Solved! Go to the solution
This is an accepted solution.
Hi @RDNaturals ,
What's input select you want change text size
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
This is an accepted solution.
Hi @RDNaturals
The class product-form__input--dropdown that you have added to the css does not exists on the product page.
You can add the following css to increase the font size of your variant dropdowns in the product page.
<style>
.shopify-product-form .selector-wrapper .single-option-selector {
font-size: 20px; /* adjust as per your needs */
}
</style>
Let me know if it works. Thanks.
This is an accepted solution.
Hi @RDNaturals
Do you mean this one?
if it is check this one.
.selector-wrapper select {
font-size: 20px !important;
}
.selector-wrapper option {
font-size: 20px !important;
}
.selector-wrapper option, .selector-wrapper select {
font-size: 20px !important;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @RDNaturals ,
What's input select you want change text size
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
This is an accepted solution.
Hi @RDNaturals
The class product-form__input--dropdown that you have added to the css does not exists on the product page.
You can add the following css to increase the font size of your variant dropdowns in the product page.
<style>
.shopify-product-form .selector-wrapper .single-option-selector {
font-size: 20px; /* adjust as per your needs */
}
</style>
Let me know if it works. Thanks.
This is an accepted solution.
Hi @RDNaturals
Do you mean this one?
if it is check this one.
.selector-wrapper select {
font-size: 20px !important;
}
.selector-wrapper option {
font-size: 20px !important;
}
.selector-wrapper option, .selector-wrapper select {
font-size: 20px !important;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This worked, thank you very much