Solved

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

yapofire
Tourist
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
145 19 34

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.
If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
3808 962 1193

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 developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

devcoders
Shopify Partner
145 19 34

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.
If my assistance was helpful, please consider liking and accepting the solution. Thank you!
yapofire
Tourist
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
145 19 34

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.
If my assistance was helpful, please consider liking and accepting the solution. Thank you!

Dawood_Mirza_
Excursionist
98 15 23

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.