How do i make the text in the 'icons with text' smaller?

Solved

How do i make the text in the 'icons with text' smaller?

VinUp
Excursionist
50 0 13

Hi, i want to make the text beneath the icons smaller by about 50% and the icon itself smaller by about 10%.  How do i do this?

VinUp_0-1721758177565.png

 

 

Website: https://vinup.nl/en/products/springsteel

Accepted Solution (1)

niraj_patel
Shopify Partner
2391 516 515

This is an accepted solution.

Hello @VinUp 

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>
@media screen and (max-width: 767px) {
  .icon-with-text--horizontal .icon-with-text__item {
       width: 100% !important;
   }
   .icon-with-text--horizontal {
        column-gap: 0 !important;
    }
    .icon-with-text .icon {
          height: 30% !impoortant; /*adjust according to you*/
          width: 30% !impoortant; /*adjust according to you*/
    }
    .icon-with-text__item span.h4.inline-richtext {
         font-size: 14px !important;
    }
}
</style>

techlyser_web_0-1721692735697.png

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

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 4 (4)

niraj_patel
Shopify Partner
2391 516 515

This is an accepted solution.

Hello @VinUp 

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>
@media screen and (max-width: 767px) {
  .icon-with-text--horizontal .icon-with-text__item {
       width: 100% !important;
   }
   .icon-with-text--horizontal {
        column-gap: 0 !important;
    }
    .icon-with-text .icon {
          height: 30% !impoortant; /*adjust according to you*/
          width: 30% !impoortant; /*adjust according to you*/
    }
    .icon-with-text__item span.h4.inline-richtext {
         font-size: 14px !important;
    }
}
</style>

techlyser_web_0-1721692735697.png

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

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

Made4uo-Ribe
Shopify Partner
10036 2387 3013

Hi @VinUp 

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.

 

ul.icon-with-text.icon-with-text--horizontal span.h4.inline-richtext {
    font-size: 1.4rem !important;
}
svg.icon.icon-accordion {
    width: 2.5rem !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1721762901664.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.

Dan-From-Ryviu
Shopify Partner
11326 2220 2390

Hi @VinUp 

Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings to do that 

@media (max-width: 749px) {
.product .icon-with-text--horizontal .h4 { font-size: 16px; }
}

Screenshot 2024-07-24 at 10.52.37.png

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

Sweans
Shopify Partner
429 89 126

Hi @VinUp ,

You can change this by adding a simple line of css

goto your online store > themes > click on the three dots of current active theme.> edit code > search in left side bar for base.css> open the base.css file

and paste the code in this file

.icon-with-text .icon {
width: 27px !important;
}

.icon-with-text--horizontal .h4 {
font-size: 15px !important;
}


If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regrads,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com