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.
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.
Macros don’t output wrappers, mostly just HubL supported Tags, and custom module fields do. could you post your HubL so we can troublshoot?
@ 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.
Thanks for posting your fix, had same issue thinking this was a problem with macros.