Support

Account

Home Forums Front-end Issues Hide on empty on header

Unread

Hide on empty on header

  • 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; ?>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.