I added gallery code to description.php, but if my product description is empty, this tab is hidden.
If the product description is not empty, the newly added ACF gallery will also be displayed normally at the same time.
How can I modify the forced display of the product description tab?
thank you
2
Answers
I created a tag myself to solve this problem
Since you’re using ACF and you’ve got your own description.php file, one simple answer is just to put the words "Hello World!" (or anything) in the product description editor area. It will never show because you’ve overriden the description tab content.