How to change product variation font size

Solved

How to change product variation font size

serene
Tourist
10 0 2

How to change font size in red circle below? I tried to adjust Theme settings > Typography but that doesn't work. I also tried to change h3,h4,h5, some caption size in css file. All failed. Please help. 

 

font size.png

Accepted Solution (1)
Moeed
Shopify Partner
7527 2033 2499

This is an accepted solution.

Hey @serene 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file

.product-form__input.product-form__input--dropdown select {
    font-size: 15px !important;
}

RESULT:

Moeed_0-1728130079781.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 15 (15)

Amarjyt
Shopify Partner
3 0 0

Hi,

you can do it by applying css for particular element class.

let me know your store name, i will tell you where you can apply css.

Shopify Expert | FullStack Developer
serene
Tourist
10 0 2
 
 
serenelyyours.myshopify.com
Thank you so much!
 
 
Moeed
Shopify Partner
7527 2033 2499

Your website is password protected, can you please share the password as well?

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


serene
Tourist
10 0 2

Hi, please use password tohcli to log in the shop

serene
Tourist
10 0 2

I'm in 3 days trial period. I think I need to buy a plan to remove the password. I'll ping you guys here later this week. Thank you so much.

serene
Tourist
10 0 2

Hi, please use password tohcli to log in the shop

Moeed
Shopify Partner
7527 2033 2499

Hey @serene 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.product-form__input--dropdown option {
    font-size: 12px !important;
}
</style>

RESULT:

Moeed_0-1728127719080.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


serene
Tourist
10 0 2

Hi Moeed,
Your solution works! How about I also want to enlarge the text in red box?

serene_0-1728129482770.png

 

Moeed
Shopify Partner
7527 2033 2499

This is an accepted solution.

Hey @serene 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file

.product-form__input.product-form__input--dropdown select {
    font-size: 15px !important;
}

RESULT:

Moeed_0-1728130079781.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


serene
Tourist
10 0 2

Works like magic! Thank you so much!

Moeed
Shopify Partner
7527 2033 2499

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Tech_Coding
Shopify Partner
514 132 131

Hello @serene 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
   .select__select {
      font-size: 1.8rem !important;
   }
</style>

Tech_Coding_0-1728130295722.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

Tech_Coding
Shopify Partner
514 132 131

Hello @serene 
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.
serene
Tourist
10 0 2

serenelyyours.myshopify.com

Password : tohcli
Thank you so much!

Moeed
Shopify Partner
7527 2033 2499

Hey @serene 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications