Remove Blog posts title in Confluence

If you’re using Blog Posts macro for Confluence, you’re probably annoyed by the Blog posts h4 title and No blog posts found line if no blog posts exist.

To remove them, add the following user macro in Confluence admin panel:

## @noparams

AJS.toInit(function() {
  $('').html($('').html().replace(/>Blog Posts</g,' '));
  $('').html($('').html().replace(/No blog posts found./g,' '));

and then insert it as macro from the macro menu to the end of the page where you need to remove the Blog post title and No blog posts found entry.
Please note, that this macro may distort the output of Page tree macro, which endlessly shows Loading without actually loading any page tree. Please check this for a more elegant solution, which works for certain applications.

Leave a Comment