How to adjust text to be written in 1 line instead of 2 for mobile

Solved

How to adjust text to be written in 1 line instead of 2 for mobile

NikosBat
Navigator
484 1 107

Hello guys, how can I adjust this text to be written in 1 line instead of 2 for mobile?

 

Bildschirmfoto 2025-01-14 um 23.47.25.png

Accepted Solution (1)

EstherBui
Trailblazer
276 39 44

This is an accepted solution.

Hi @NikosBat 

 

You can follow the instruction here :

1. Go to Shopify > Online store > theme > customize

2. Click to Settings > Custom CSS > Paste this code to the section and save.

.icon-with-text--horizontal .h4 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

 

h4, .h4 {
    font-size: 10px;
}

 

Result :

 

EstherBui_0-1736896977385.png

 

I hope it helps. 

 

Esther 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

View solution in original post

Replies 6 (6)

EstherBui
Trailblazer
276 39 44

This is an accepted solution.

Hi @NikosBat 

 

You can follow the instruction here :

1. Go to Shopify > Online store > theme > customize

2. Click to Settings > Custom CSS > Paste this code to the section and save.

.icon-with-text--horizontal .h4 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

 

h4, .h4 {
    font-size: 10px;
}

 

Result :

 

EstherBui_0-1736896977385.png

 

I hope it helps. 

 

Esther 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

NikosBat
Navigator
484 1 107

Thanks for helping me EstherBui, that solved my problem

DaisyVo
Shopify Partner
4469 501 598

Hi @NikosBat ,

You can follow the steps here:

 

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

 

Here is the code for step 3:

@media screen and (max-width: 768px){
ul.icon-with-text.icon-with-text--horizontal.list-unstyled {
    gap: 0 !important;
}
ul.icon-with-text.icon-with-text--horizontal.list-unstyled li.icon-with-text__item
 span.h4.inline-richtext {
    font-size: 10px !important;
}
}

Here is the result:

DaisyVo_0-1736898876414.png

 

Please let me know if it works!

 

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
NikosBat
Navigator
484 1 107

Thanks for helping me DaisyVo, that solved my problem

GTLOfficial
Shopify Partner
880 182 192

Hello @NikosBat
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.

@media screen and (max-width: 749px) {
.h4.inline-richtext {
font-size: 9px !important;
}
}

result
142.png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh
NikosBat
Navigator
484 1 107

Thanks for helping me GTLOfficial, that solved my problem