Re: customize the shape and size of the language selector

Solved

customize the shape and size of the language selector

AhsenZa
Excursionist
30 0 5

Hello!
I am trying to customize the size and shape of the language selector. I am currently using theme Pipeline and language selector is from the app Hextom (app doesn't let me customize such details). This is the link of my website: Kream.ch 

Currently the selector looks like this:

Hextom selector.png

 

However it is way too bulky, dropdown arros is also too far from letters, I am looking for something more discrete, as example picture below.

 

exampleselector.png

Thank you in advance!

Accepted Solutions (2)

Moeed
Shopify Partner
4998 1330 1610

This is an accepted solution.

Hey @AhsenZa 

 

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>
.ht-tms-option__text.ht-tms-dropdown__list-item__label {
    width: 20px !important;
}
.ht-tms-option__item.ht-tms-dropdown__list-item.ht-tms-dropdown__flag-off {
    padding: 2px 24px 1px 7px !important;
}
</style>

RESULT:

Moeed_0-1721309808077.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
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Moeed
Shopify Partner
4998 1330 1610

This is an accepted solution.

Hey @AhsenZa 

 

Remove the previous code and add this new code with the same steps mentioned above.

<style>
@media screen and (min-width: 768px) {
.ht-tms-option__text.ht-tms-dropdown__list-item__label {
    width: 20px !important;
}
.ht-tms-option__item.ht-tms-dropdown__list-item.ht-tms-dropdown__flag-off {
    padding: 2px 24px 1px 7px !important;
}
}
</style>

 

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
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
4998 1330 1610

This is an accepted solution.

Hey @AhsenZa 

 

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>
.ht-tms-option__text.ht-tms-dropdown__list-item__label {
    width: 20px !important;
}
.ht-tms-option__item.ht-tms-dropdown__list-item.ht-tms-dropdown__flag-off {
    padding: 2px 24px 1px 7px !important;
}
</style>

RESULT:

Moeed_0-1721309808077.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
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
AhsenZa
Excursionist
30 0 5

Hi @Moeed,

Thank you for your solution and quick reply, works perfectly.
I have noticed tho that the selector on mobile becomes too small, is it possible to apply the code above only to the web version and leave the normal size for the mobile version? Thank you very much

Moeed
Shopify Partner
4998 1330 1610

This is an accepted solution.

Hey @AhsenZa 

 

Remove the previous code and add this new code with the same steps mentioned above.

<style>
@media screen and (min-width: 768px) {
.ht-tms-option__text.ht-tms-dropdown__list-item__label {
    width: 20px !important;
}
.ht-tms-option__item.ht-tms-dropdown__list-item.ht-tms-dropdown__flag-off {
    padding: 2px 24px 1px 7px !important;
}
}
</style>

 

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
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
AhsenZa
Excursionist
30 0 5

Works!

Thanks a lot!

Moeed
Shopify Partner
4998 1330 1610

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
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️