Jump to content

[Share] Add Icons under Product Description

Recommended Posts

To add Icons under Product Description, you can follow these steps.

image.png.3872cb91980dc8012dff3ff3b5276042.png

#1. First, edit Product > Additional Info

image.png.e9ccf4e7118db328fcb2c867e3e3167e.png

#2. Add a Gallery Block

image.thumb.png.6ddc3b947c321af51b2dd606f55c4569.png

#3. Upload your desired icons

image.png.2cbdff0d4fe9de4f8b78a95c5c7db24b.png

#4. You can click Gear icon if you want to add text under icon

image.png.51f67ae789a3ecb276c0b8e48b0741ee.png

Then enter text in Title box

image.png.1654e1059c00e117bf2909737aaa90fa.png

#5. Next, choose Grid/Show Title to make text appear under icon

image.png.c47cd54793d9df3d03d21d56355a24b8.png

#6. Use this code to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .gallery-block').appendTo('div.ProductItem-details-excerpt');
});
</script>

image.png.0dd8dc77c5b6f2fe8d5251f8fc12b57f.png

#7. Result

image.png.3872cb91980dc8012dff3ff3b5276042.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Replies 16
  • Views 440
  • Created
  • Last Reply

Top Posters In This Topic

Change #6 to this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .gallery-block').appendTo('div.ProductItem-details-excerpt-below-add-to-cart');
});
</script>

If it still doesn't work, you can remove both code, I can test code easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
23 hours ago, Pruthak said:

hi @tuanphan this is how it appears on the desktop view and unable to see on mobile view. Is it possible to have text wrapped under the icon both for desktop and mobile. Thank you so much for your help. 

Screenshot2024-09-21at1_04_16PM.thumb.png.116e1eaa91d620e8a3da2d5cc1f2c1ce.png

I think you are setting 9 items/row.

You can edit Gallery Block > Set show 3 or 4 items/row

image.thumb.png.df10f5c7de527615e6d75b66ab6f79af.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 9/19/2024 at 4:54 AM, tuanphan said:

To add Icons under Product Description, you can follow these steps.

image.png.3872cb91980dc8012dff3ff3b5276042.png

#1. First, edit Product > Additional Info

image.png.e9ccf4e7118db328fcb2c867e3e3167e.png

#2. Add a Gallery Block

image.thumb.png.6ddc3b947c321af51b2dd606f55c4569.png

#3. Upload your desired icons

image.png.2cbdff0d4fe9de4f8b78a95c5c7db24b.png

#4. You can click Gear icon if you want to add text under icon

image.png.51f67ae789a3ecb276c0b8e48b0741ee.png

Then enter text in Title box

image.png.1654e1059c00e117bf2909737aaa90fa.png

#5. Next, choose Grid/Show Title to make text appear under icon

image.png.c47cd54793d9df3d03d21d56355a24b8.png

#6. Use this code to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .gallery-block').appendTo('div.ProductItem-details-excerpt');
});
</script>

image.png.0dd8dc77c5b6f2fe8d5251f8fc12b57f.png

#7. Result

image.png.3872cb91980dc8012dff3ff3b5276042.png

Is there anyway to change the text color? 

Thank you!

 

Link to comment
7 minutes ago, AnnaRadzicki said:

Is there anyway to change the text color? 

Thank you!

 

Use this code under #6 code

<style>
  div.ProductItem-details-excerpt .gallery-block * {
  	color: #f1f !important;
  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
13 minutes ago, tuanphan said:

Use this code under #6 code

<style>
  div.ProductItem-details-excerpt .gallery-block * {
  	color: #f1f !important;
  }
</style>

 

I know this is a little bit different but I have tried almost everything to no avail. 

I am looking to have 4 icons in total with text below like the attached snippet. Each icon has an underlining hover effect, and when clicked on a light box pops up. Is anything like this possible ? 

 

URL: https://www.kalglo.com/

 

Screenshot 2024-09-25 100642.png

Link to comment
9 hours ago, AnnaRadzicki said:

I know this is a little bit different but I have tried almost everything to no avail. 

I am looking to have 4 icons in total with text below like the attached snippet. Each icon has an underlining hover effect, and when clicked on a light box pops up. Is anything like this possible ? 

 

URL: https://www.kalglo.com/

 

Screenshot 2024-09-25 100642.png

This will require additional plugin to create lightbox, if you have a budget, I will write new guide

With underline hover, you can share link to exact product in your screenshot, I will give you code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...

To add icon under Add to Cart button, follow #1 to #5

then with #6, use this code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .gallery-block').appendTo('.ProductItem .ProductItem-quantity-add-to-cart');
});
</script>

to add icon above Add to Cart button, change #6 to this code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .gallery-block').insertBefore('.ProductItem-details .sqs-add-to-cart-button-wrapper');
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

To add icons under Product Title, you can use this code for #6

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('section.ProductItem-additional .gallery-block').insertAfter('h1.ProductItem-details-title');
});
</script>
<style>
  h1.ProductItem-details-title+.gallery-block {
    order: 2;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.