Product Gallery Element Not Working

Hello! I recently added Woocommerce to my website & am running into a few issues.

The main one is that I’m trying to add a product gallery to my home page. Just 3 products in 1 one row, preferably the “best selling” products but I’ll take what I can get.

I initially tried adding the best selling woocommerce widget as a block on the homepage, but for whatever reason - even though it displays properly on the widget builder, it shows up as 3 rows that stretch accross the entire site page (an look awful), rather than the singe row with 3 colums.

Then, when I tried to use the product element gallery instead, absolutely nothing loads at all. Do I need to select something? Tell it what content to load? I searched the docs but can’t find anything…

Help appriciated!

Hello Cassidy,

Thanks for writing to us.

To display the best-selling products in one row and 3 columns I would suggest using the Text element or Rae content element where you can insert this shortcode.

[products limit="3" columns="3" best_selling="true" ]

Please feel free to change the limit value to display the number of products, you can change the column value to set the number of columns as well.

Please have a look at this article to learn more about product shortcode and its attributes.

Hope it helps
Thanks

Yay! Thank you! This is exactly what I was looking for.

Do you know if there’s a way I can use this same shortcode in my sidebar? I tried using it by changing the number of columns to 1.

Hello Cassidy,

Yes, you can add the shortcode in the widget for that you need to go to -->Appreance —>Widget—>Add Text Widget to the widget area.

Please have a look at the screenshot of the backend and frontend

full-page-admin

Hope it helps
Thanks

1 Like

Thank you!! It’s working now though I have no idea why I thought it wasnt before haha.

Hi Cassidy,

Glad to hear that, It could be caching-related why you did not see the changes before.

Remember to clear all your caching features after an update or changes that did not take effect immediately.

Cheers,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.