# How to use Static Content Macros

**URL:** <https://community.developer.atlassian.com/t/how-to-use-static-content-macros/5461>\
**Category:** Confluence Cloud\
**Created:** [June 22, 2017, 7:36am UTC](https://community.developer.atlassian.com/t/how-to-use-static-content-macros/5461 "2017-06-22T07:36:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenny](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/jenny/32/35073_2.png) [@jenny](https://community.developer.atlassian.com/u/jenny)\
**Post date:** [June 22, 2017, 7:36am UTC](https://community.developer.atlassian.com/t/how-to-use-static-content-macros/5461/1 "2017-06-22T07:36:23Z")

</div>

I’m currently looking into static content macro but having some difficulty to understand what I should use it for. So far I haven’t been able to set any CSS besides the one directly on the elements and all elements added to the .hbs file which needs an action to work, for example `<button>`, are removed during rendering.  
Am I missing something or am I only supposed to be able to add text and images and do some minor manipulation?

---

<div class="post-metadata">

**Author:** ![andreas1](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@andreas1](https://community.developer.atlassian.com/u/andreas1)\
**Post date:** [June 24, 2017, 8:55am UTC](https://community.developer.atlassian.com/t/how-to-use-static-content-macros/5461/2 "2017-06-24T08:55:38Z")

</div>

Dear Jenny,

you can only return [Confluence Storage Format](https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html) with a [Static Content Macro](https://developer.atlassian.com/static/connect/docs/latest/modules/confluence/static-content-macro.html). For all other things you need a Dynamic Content Macro. I hope that helps.

Andreas
