# Remove wrapper from macro?

**URL:** <https://community.hubspot.com/t/remove-wrapper-from-macro/10939>\
**Category:** CMS Development\
**Created:** [November 15, 2018, 11:02am UTC](https://community.hubspot.com/t/remove-wrapper-from-macro/10939 "2018-11-15T11:02:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craig](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/craig/32/60219_2.png) [@Craig](https://community.hubspot.com/u/Craig)\
**Post date:** [November 15, 2018, 11:02am UTC](https://community.hubspot.com/t/remove-wrapper-from-macro/10939/1 "2018-11-15T11:02:55Z")

</div>

Can’t find any docs regarding a no\_wrapper option for macros - is there a way to remove the wrapping span element from a macro like with tags?

These wrappers just break layouts constantly.

---

<div class="post-metadata">

**Author:** ![Jon\_McLaren](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jon_mclaren/32/8271_2.png) [@Jon\_McLaren](https://community.hubspot.com/u/Jon_McLaren)\
**Post date:** [November 16, 2018, 5:34pm UTC](https://community.hubspot.com/t/remove-wrapper-from-macro/10939/2 "2018-11-16T17:34:00Z")

</div>

Macros don’t output wrappers, mostly just HubL supported Tags, and custom module fields do. **could you post your HubL so we can troublshoot?**

---

<div class="post-metadata">

**Author:** ![Craig](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/craig/32/60219_2.png) [@Craig](https://community.hubspot.com/u/Craig)\
**Post date:** [November 19, 2018, 11:06am UTC](https://community.hubspot.com/t/remove-wrapper-from-macro/10939/3 "2018-11-19T11:06:32Z")

</div>

@ you are correct - thanks. I looked again and it was the calling of the macro via related posts module that was including the wrapper.

**Replacing:**

`{% related_blog_posts limit=2, tags="{{ tags }}", post_formatter="blog_post_formatter" %}`

**With:**

`{% related_blog_posts limit=2, tags="{{ tags }}", no_wrapper=True, post_formatter="blog_post_formatter" %}`

did the trick.

---

<div class="post-metadata">

**Author:** ![CDow](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cdow/32/54892_2.png) [@CDow](https://community.hubspot.com/u/CDow)\
**Post date:** [July 30, 2021, 6:17pm UTC](https://community.hubspot.com/t/remove-wrapper-from-macro/10939/4 "2021-07-30T18:17:07Z")

</div>

Thanks for posting your fix, had same issue thinking this was a problem with macros.
