Hide query loop’s title if the query loop is empty
-
Hi,
I have a WooCommerce website, where on the products pages, I manually added a GeneratePress hook after the product’s info in order to display similar products in a GenerateBlocks Query Loop (products that have the same category).
Just before this loop I have a title that says ‘You may also like’.I was wondering if it was possible to hide the title if there are no other products in the product’s category (so no products to display)?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Hide query loop’s title if the query loop is empty’ is closed to new replies.