Hey guys!
I’m having trouble with the hide on empty feature,
The problem is this: I’ve got a divi module in which there’s an header displaying the title of the module, and another module below it with the actual content.
While the content module is not visible, the title does not disappear, even if I apply the hide on empty code to the header
the code i am using to hide the title is this:
<?php if( get_field('content_form') ): ?>
<h2>Content:</h2>
<?php endif; ?>