Remove Icon, created by, Name, Date and Space from Blog Posts Macro Output

I’ve revised the macro to remove created by and other useless information from Blog Posts macro output.

Now this is an elegant solution compared to the dirty hack I presented before, and thus doesn’t damage other code on page.
Insert this as a User macro from Confluence admin page.

## @noparams

<script>
AJS.toInit(function() {
 $(".blog-post-list .sub-heading").addClass("hidden");
 $(".blog-post-list:contains('No blog posts found')").addClass("hidden");
 $(".blog-item-space").addClass("hidden");
 $(".blog-item-creator").addClass("hidden");
 $(".blog-item-date").addClass("hidden");
 $(".icon").addClass("hidden");
 $('span.blog-title').each(function(){
  this.removeChild(this.lastChild);
});
});
</script>

Save tha user macro and insert it from the macro menu on the page you have your Blog Post macros.
The will remove Blog Posts heading, No blog posts found., spacekey of the post, creator, date, icon and the Blog: text that appears on copy-paste and created by prefix.

Leave a Comment