How to hide a block when it has no contents? |
Subject: How to hide a block when it has no contents? by Madfish on 2015/2/12 22:48:14 Is there a way that I can make a block hide itself if it has not contents? Say I have a 'recent articles' block, which can be filtered by tag. For some tags, there are no articles, but the title of the block still displays. What I would like to happen is, if there is no content in a block, it does not display the block title or anything else. It just doesn't display. I've tried setting $block['title'] = '', or not returning $block, but the title still shows up. Any ideas? |