WooCommerce: Add Content Below Single Product Images

One of the latest WooCommerce versions introduced an optimized product gallery on the single product page. If your products have multiple images and therefore use the product gallery, you might want to also add content below the gallery itself. But…

If you’re familiar with WooCommerce customization and WooCommerce hooks (and specifically the ones of the Single Product Page), you’ll know it’s now impossible to add content under the image as it used to be done with the “woocommerce_product_thumbnails” hook.

In fact, the new gallery completely replaces the default content via JQuery, including that hook. Adding content is not as easy as it used to be. So, here’s the workaround (you might want to check how it behaves on mobile or maybe completely hide this for small devices – this has been tested on desktop only).

Add content below the WooCommerce Single Product Page images

PHP Snippet: Add Content Below the Gallery Images @ WooCommerce Single Product

 * @snippet       Add Content Below the Gallery Images @ WooCommerce Single Product
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 4.1
 * @donate $9     https://businessbloomer.com/bloomer-armada/
// Note 1: this works on Storefront theme, might need customization for other themes
// Note 2: class "woocommerce-product-gallery" is vital for inheriting CSS float left, margins and widths
add_action( 'woocommerce_after_single_product_summary' , 'bbloomer_add_below_prod_gallery', 5 );
function bbloomer_add_below_prod_gallery() {
   echo '<div class="woocommerce-product-gallery" style="background: #fdfd5a; padding: 1em 2em">';
   echo '</div>';

Where to add custom code?

You should place PHP snippets at the bottom of your child theme functions.php file and CSS at the bottom of its style.css file. Make sure you know what you are doing when editing such files - if you need more guidance, please take a look at my guide "Should I Add Custom Code Via WP Editor, FTP or Code Snippets?" and my video tutorial "Where to Place WooCommerce Customization?"

Does this snippet (still) work?

Please let me know in the comments if everything went as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting.

If you think this code saved you time & money, feel free to join 17,000+ WooCommerce Weekly subscribers for blog post updates and 250+ Business Bloomer supporters for 365 days of WooCommerce benefits. Thank you in advance!

Need Help with WooCommerce?

Check out these free video tutorials. You can learn how to customize WooCommerce without unnecessary plugins, how to properly configure the WooCommerce plugin settings and even how to master WooCommerce troubleshooting in case of a bug!

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.

34 thoughts on “WooCommerce: Add Content Below Single Product Images

  1. Hi,
    I used this code but it renders the content in between the left and right columns’ content. I mean, it shows the text in the middle of the image and product data in the right column area.


    1. Maybe you need additional CSS depending on your theme

  2. Found your example and want to know how I can show different content for each product?

    1. Rubb, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  3. Apparently this doesn’t work with newer version of WooCommerce that is using flex for gallery images. Any tips?

    1. Hello Zia, if you remove the “woocommerce-product-gallery” class, does it work?

      1. nope, doesn’t work.
        seen at the bottom.

        1. You may need additional CSS then, sorry

  4. Thanks for this. Is there a way to add pages to a single product. For instance when customers click a good, it takes them to a product page. On that product page, I want them to be able to enter the size and then click a button that we open another page for the, to select the fabric they want to use, and then a next page to summarise what they have selected next to the original style

    1. Hello Lady, thanks for your comment! I think you can do that (or similar) with this: https://businessbloomer.com/woocommerce-how-to-sell-product-customizations-add-ons/

  5. Any way to wrap a function into this function? I’m trying to move woocommerce_template_single_rating (among other things) under the product thumbnail area. Thanks.

    1. Hey there, thanks for your comment – yes, of course, you can enter there any WooCommerce function you like. Give it a go

  6. Hi, Thanks for Snippet
    My question is; Is it possible to modify it to be visible in specific Categories?

    1. Hey Boun, thanks so much for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here via the blog comments. Thanks a lot for your understanding! ~R

  7. While this works to show static data I am having difficulty making it work to move one of the woo template functions underneath the picture. Eg. I would like to move the variation select form under the picture and gallery so that users can quickly flip between the options and see corresponding picture without scrolling back up to the top of the page. Any tips there? Thanks!

    1. Hey Adan, thanks for your comment 🙂 You also need to make sure you’re moving the “form” otherwise those select and input fields won’t work. It’s a very delicate thing. Hope this helps

  8. Worked for me! Thanks a mill!

    1. 🙂

  9. Dear Sir,
    I want to add some pictures (at thumbnail product) to all single products page. Please help me.

    1. Hello Trung – thanks so much for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here via the blog comments. Thanks a lot for your understanding! ~R

  10. Yes it works but having a positioning issue, as displayed in the example image.

    1. Hey Samuel, thanks for your comment! You might need custom CSS specific to your theme, this snippet can’t be valid for all themes 🙂

  11. I have tried to add this code in my Avada child theme function.php but nothing happens 🙁

    1. Hey Steph, thanks for your comment! Probably Avada has deep WooCommerce customization so default snippets don’t always work. Try to switch temporarily to another theme just to make sure the snippet works 🙂

  12. Hi I’ve tried this and it work’s, work in the sense of it has an output… but it is different from the example image above because it is positioned below the product gallery and description.

    1. Hey Ray, thanks for your comment! Try with a “clear: left”, see comment https://businessbloomer.com/woocommerce-add-content-below-the-single-product-page-images/#comment-37054 – let me know 🙂

  13. Good day. Thank you so much for this. I got it to work perfectly here: https://www.johnnieandpaw.co.za/product/pierced-pendant-resin/

    But … my question is, is it possible to hide it on a mobile phone? If you could help me with that I will be eternally grateful.

    Using Divi.

    1. Hello there and thanks for your question! Of course, you could try wrapping the inside of the function between a conditional check, and use the helpful WordPress function wp_is_mobile():

      function bbloomer_add_below_prod_gallery() {
         if ( ! wp_is_mobile() ) {
      	/* Rest of the original function goes here */
  14. When I tried this in Storefront theme it put the yellow div above the Description/Additional Information/Reviews tabs.
    This change seems like a bad regression. Maybe the solution is to add a ‘replacement’ action e.g.
    near the bottom of templates/single-product/product-image.php.

    If you can think of a good use case for putting info under the thumbnails then I’ll happily submit a pull request.

    1. Cheers Damien!

      1) Do your products have a product gallery? This won’t work if there is only 1 featured image
      2) Did you keep the CSS class inside the PHP snippet? That gives you the float:left and aligns the div under the product gallery

      Let me know 🙂

    2. 1) Yes, product image and 2 images in product gallery.
      2) Yes, CSS retained.
      Screenshot: https://i68.tinypic.com/vfvbjl.png

      1. Ah thanks Damien! Possibly the element is floating left but because there is more vertical spacing in the right columns is going there. Try either adding a short description that “pushes” the element to the left (as a test) to see if this theory is correct.

        After this simple test, maybe you can solve this by adding “clear: left” to the yellow DIV?

  15. thanks for your sharing ! this is helpful articles !

    1. Cool 🙂

Questions? Feedback? Support? Leave your Comment Now!

If you are writing code, please wrap it between shortcodes: [php]code_here[/php]. Failure to complying with this (as well as going off topic, not writing in English, etc.) will result in comment deletion. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining BloomerArmada to get blog comment reply priority, ask me 1-to-1 WooCommerce questions and enjoy many more perks. Thank you :)

Your email address will not be published. Required fields are marked *