Modify Icon With Text section to have no text and larger images

Solved

Modify Icon With Text section to have no text and larger images

yapofire
Excursionist
12 0 6

Hi there,

 

On my product pages I have an Icon With Text Block, where I want to show 3 x image badges

 

However I cant see a way to remove the text and make the 3 x images larger to fill the section (as my images already contain text).

 

2024-05-11 (3).png

 

Any ideas?

 

Store details:

 

 

https://7a5425-c8.myshopify.com/

 

stiald

 

 

Thanks

Accepted Solution (1)

devcoders
Shopify Partner
1169 140 330

This is an accepted solution.

Hi @yapofire 

- Go to Online Store -> Theme -> Edit code.
- Find the file assets/base.css and paste the code below at the bottom of the file."

 

.icon-with-text__item span {
display: none;
}
.icon-with-text__item img {
width: 90px;
height: auto;
}

 

devcoders_0-1715411654812.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 6 (6)

Moeed
Shopify Partner
7147 1932 2354

Hey @yapofire 

 

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>
.icon-with-text--horizontal .h4 {
    display: none !important;
}
.icon-with-text img {
    --icon-size: calc(var(--font-heading-scale) * 6rem) !important;
}
</style>

RESULT:

Moeed_0-1715411580620.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


devcoders
Shopify Partner
1169 140 330

This is an accepted solution.

Hi @yapofire 

- Go to Online Store -> Theme -> Edit code.
- Find the file assets/base.css and paste the code below at the bottom of the file."

 

.icon-with-text__item span {
display: none;
}
.icon-with-text__item img {
width: 90px;
height: auto;
}

 

devcoders_0-1715411654812.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
yapofire
Excursionist
12 0 6

Modified to this, as couldnt see icon size change

 

.icon-with-text__item span {
display: none;
}
.icon-with-text__item img {
width: 80px !important;
height: auto !important;
}

 

Works great, thanks

 

 

devcoders
Shopify Partner
1169 140 330

Hi @yapofire 

Great to hear that the issue has been resolved! If you need any further assistance, feel free to reach out.


Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
Mo1ehb
Tourist
16 0 2

Hello do you know how to add more icons? Like instead of just 3 make them 4 or 5

Dawood_Mirza_
Trailblazer
135 18 30

Hi Yapofire again 🙂 ,
Use this code in product page > custom liquid 

 

Dawood_Mirza__0-1715413218523.png

.icon-with-text__item .h4 {
  display: none;
}
.icon-with-text__item img {
  width: 200%;
  height: auto;
}

 

Adjust width as per needed

Hope to have solved your query 🙂

 

Want to work with me - dawoodmirzabusiness@gmail.com
Don't forget to like and mark it as Solution if it was helpful to you.