Add icon with text section above the add to cart button (Testament Theme)

Topic summary

Goal: add an icon-with-text info block above the Add to Cart button on a product page in the Testament theme.

Implementation (Customizer-based):

  • Product template > Add block > Custom liquid.
  • Paste HTML/CSS for a flex container with an icon image and a bullet list of store assurances.
  • Drag the block above the Buy buttons and save.
  • To change icon color, replace the image src with an icon file in the desired color (not via CSS color on the provided SVG/PNG).

Refinements after feedback:

  • Reduced overall size via CSS: smaller font-size, tighter padding, max-width adjustments.
  • Desktop: set the image to ~30% width; kept list on the right to minimize wrapping.
  • Mobile: allowed 100% width for the block; advised against making the icon as large as the text list, as it causes excessive wrapping and layout issues.

Open/closed status:

  • Resolved. The updated desktop CSS achieved the desired appearance; user confirmed it “looks good now.”

Notes:

  • Screenshots were central to showing layout/size issues and the final result.
Summarized with AI on December 29. AI used: gpt-5.

Hello Everyone!

This is the Shopify Testament theme. I haven’t live the theme yet. I want to add icon with text section above the add to cart button on the product page, Is it possible? Thank you.
https://themes.shopify.com/themes/testament/styles/genesis/preview

Text Here:
. Accepting Payments Worldwide.
. Shipping Worldwide.
. Currencies are seamlessly converted to Philippine Pesos (₱) at checkout.
. We ensure secure transactions and safe delivery of your orders.
Here

I would like to keep it this way

Hi @dreamtechzone_5

Hope the following instructions can help you:

- Set 1: First, navigate to Theme => Customize => Select “Product” page:

- Set 2: Second, on the left sidebar, under Template → Product Page, click “Add block” and choose “Custom liquid”

- Step 3: Then, a block will appear on the right side.

- Step 4: Third, paste the following code into this block:


   
![Image|22x22](upload://yzj0sVi9U6nlNbuP2tg4O7B2dlO.svg)

   

      - Accepting Payments Worldwide.

      - Shipping Worldwide.

      - Currencies are seamlessly converted to Philippine Pesos (₱) at checkout.

      - We ensure secure transactions and safe delivery of your orders.
   

  • You can modify the image by changing the “src” attribute of the image tag, as well as the text.

  • Don’t forget to click “Save” to apply your changes.

  • Fourth, drag the block you just created to position it right above the ‘Buy buttons’ as illustrated in the following image:

- Step 5: Finally, save change and see what happend.

The result can look like:


If you have more specific requests, please comment further to let me know.

Hope it helps!

If it helpful, please mark as a solution. Thanks and have a nice day sir!

Hi @dreamtechzone_5

Hope the following instructions can help you:

- Step 1: First, navigate to Theme => Customize => Select “Product” page:

- Step 2: Second, on the left sidebar, under Template → Product Page, click “Add block” and choose “Custom liquid”

- Then, a block will appear on the right side.

- Step 3: Third, paste the following code into this block:


   
![Image|22x22](upload://yzj0sVi9U6nlNbuP2tg4O7B2dlO.svg)

   

      - Accepting Payments Worldwide.

      - Shipping Worldwide.

      - Currencies are seamlessly converted to Philippine Pesos (₱) at checkout.

      - We ensure secure transactions and safe delivery of your orders.
   

  • You can modify the image by changing the “src” attribute of the image tag, as well as the text.

  • Don’t forget to click “Save” to apply your changes.

- Step 4: Fourth, drag the block you just created to position it right above the ‘Buy buttons’ as illustrated in the following image:

- Step 5: Finally, save change and see what happend.

  • The result can look like:


I hope these instructions will help you. If they are helpful, don’t forget to like and mark as the solution.

Have a nice day sir!

1 Like

Really Great. I appreciate it. Thank you so much. Can the max width and height of the section be reduced? Doesn’t look good because it looks too big. Also, the mobile mode is not going well. It would be nice if the icons and text were kept small. Can the color of the icon be kept as my icon color?

Desktop Mode

Mobile Mode

Hi @dreamtechzone_5

  • You change change the code to new:

   
![Image|22x22](upload://yzj0sVi9U6nlNbuP2tg4O7B2dlO.svg)

   

      - Accepting Payments Worldwide.

      - Shipping Worldwide.

      - Currencies are seamlessly converted to Philippine Pesos (₱) at checkout.

      - We ensure secure transactions and safe delivery of your orders.
   

  • The result will look like:

  • As I mentioned earlier, the icon I provided is just an example. To change the icon’s color, you’ll need to replace the URL in the “src” attribute of the tag with the URL of your desired icon image.

  • I hope this will help you.
1 Like

I can’t get the icon color I want to keep. What do I have to do for this?

The request you made is not straightforward, as the content has been adjusted to fit the displayed size. As you have noticed, because one line is not wide enough for two words, it automatically wraps to the next line. To minimize this, you can try reducing the font-size by try the following code snippet:

<div class="content-block">
   <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/Twitter_Verified_Badge_Gray.svg" alt="Image">
   <ul>
      <li>Accepting Payments Worldwide.</li>
      <li>Shipping Worldwide.</li>
      <li>Currencies are seamlessly converted to Philippine Pesos (₱) at checkout.</li>
      <li>We ensure secure transactions and safe delivery of your orders.</li>
   </ul>
</div>
<style>
   .content-block {
   display: flex;
   align-items: center;
   border: 0.15em solid black;
   margin-top: 1em;
   padding: 0.5em;
   max-width: 75%;
   font-size: 13px;
   }
   .content-block img {
   width: 50%;
   max-height: 100px;
   margin-right: 20px;
   }
   .content-block ul {
   padding: 0;
   }
   .content-block ul li {
   overflow: hidden;
   text-overflow: ellipsis;
   }
   .content-block ul li::before {
   margin-right: 5px;
   }
   @media only screen and (max-width: 900px) {
   .content-block {
   max-width: 100%;
   }
   .content-block ul {
   text-align: left;
   }
   }
</style>
1 Like

I understand. Thank you so much. Can the width of the text be kept according to the size of the icon in desktop and mobile mode?

Want

Hello BSS-TechFusion!

Are you there? Please solve it. Thank you so much.

Hi @dreamtechzone_5 ,

Sorry for the late reply.

For the desktop you can use this code:

<div class="content-block">
   <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/Twitter_Verified_Badge_Gray.svg" alt="Image">
   <ul>
      <li>Accepting Payments Worldwide.</li>
      <li>Shipping Worldwide.</li>
      <li>Currencies are seamlessly converted to Philippine Pesos (₱) at checkout.</li>
      <li>We ensure secure transactions and safe delivery of your orders.</li>
   </ul>
</div>
<style>
   .content-block {
   display: flex;
   align-items: center;
   border: 0.15em solid black;
   margin-top: 1em;
   padding: 0.5em;
   max-width: 75%;
   font-size: 13px;
   }
   .content-block img {
   width: 30%;
   margin-right: 20px;
   }
   .content-block ul {
   padding: 0;
   }
.content-block ul li {
    overflow: hidden;
    text-overflow: ellipsis;
}
   .content-block ul li::before {
   margin-right: 5px;
   }
   @media only screen and (max-width: 900px) {
   .content-block {
   max-width: 100%;
   }
   .content-block ul {
   text-align: left;
   }
   }
</style>

I’m just try in mobile device, but there’re an issue. If making the icon the same size as that text list, the icon would appear very large and occupy the space of the text on the right, causing the block to extend, similar to the issue you mentioned above. It would result in the text width being shortened, making it prone to wrapping. Therefore, I do not recommend you to do this on the mobile view.

Hi @dreamtechzone_5 ,

Sorry for the late reply.

For the desktop you can use this code:

<div class="content-block">
   <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/Twitter_Verified_Badge_Gray.svg" alt="Image">
   <ul>
      <li>Accepting Payments Worldwide.</li>
      <li>Shipping Worldwide.</li>
      <li>Currencies are seamlessly converted to Philippine Pesos (₱) at checkout.</li>
      <li>We ensure secure transactions and safe delivery of your orders.</li>
   </ul>
</div>
<style>
   .content-block {
   display: flex;
   align-items: center;
   border: 0.15em solid black;
   margin-top: 1em;
   padding: 0.5em;
   max-width: 75%;
   font-size: 13px;
   }
   .content-block img {
   width: 30%;
   margin-right: 20px;
   }
   .content-block ul {
   padding: 0;
   }
.content-block ul li {
    overflow: hidden;
    text-overflow: ellipsis;
}
   .content-block ul li::before {
   margin-right: 5px;
   }
   @media only screen and (max-width: 900px) {
   .content-block {
   max-width: 100%;
   }
   .content-block ul {
   text-align: left;
   }
   }
</style>

I’m just try in mobile device, but there’re an issue. If making the icon the same size as that text list, the icon would appear very large and occupy the space of the text on the right, causing the block to extend, similar to the issue you mentioned above. It would result in the text width being shortened, making it prone to wrapping. Therefore, I do not recommend you to do this on the mobile view

1 Like

Awesome. It worked. Looks good now. Thank you so much.