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

Dropdown Text Size Changes but does not remain

Solved

Dropdown Text Size Changes but does not remain

RDNaturals
Tourist
11 0 2

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

 

Accepted Solutions (3)

BSSCommerce-TC
Shopify Partner
225 49 51

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


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Entesta
Shopify Partner
80 8 20

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.


We value your feedback! Let us know if this helped by giving it a thumbs up or marking it as a solution or buy us a coffee.
Looking for Shopify experts to help you with your website? We are just one click away. Drop an email or say hi on WhatsApp to initiate a request support@entesta.com | +91 79083 21294
Entesta - Powering Your E-Commerce Journey with Shopify Expertise

View solution in original post

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @RDNaturals 

Do you mean this one?

Made4uoRibe_0-1721238155102.png

if it is check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

 .selector-wrapper select {
     font-size: 20px !important;
}

 

  • And Save. If you like to adjust also the option. 

 

 .selector-wrapper option {
     font-size: 20px !important;
}

 

  • if both of theme. 

 

.selector-wrapper option, .selector-wrapper select {
     font-size: 20px !important;
}

 

  • And Save. 
  • result:
  • Made4uoRibe_1-1721238277151.png

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 4 (4)

BSSCommerce-TC
Shopify Partner
225 49 51

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


BSS Commerce - Full-service eCommerce Agency

Entesta
Shopify Partner
80 8 20

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.


We value your feedback! Let us know if this helped by giving it a thumbs up or marking it as a solution or buy us a coffee.
Looking for Shopify experts to help you with your website? We are just one click away. Drop an email or say hi on WhatsApp to initiate a request support@entesta.com | +91 79083 21294
Entesta - Powering Your E-Commerce Journey with Shopify Expertise

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @RDNaturals 

Do you mean this one?

Made4uoRibe_0-1721238155102.png

if it is check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

 .selector-wrapper select {
     font-size: 20px !important;
}

 

  • And Save. If you like to adjust also the option. 

 

 .selector-wrapper option {
     font-size: 20px !important;
}

 

  • if both of theme. 

 

.selector-wrapper option, .selector-wrapper select {
     font-size: 20px !important;
}

 

  • And Save. 
  • result:
  • Made4uoRibe_1-1721238277151.png

     

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
RDNaturals
Tourist
11 0 2

This worked, thank you very much