# Custom module for triggering classes

**URL:** <https://community.hubspot.com/t/custom-module-for-triggering-classes/17638>\
**Category:** CMS Development\
**Tags:** design-manager, content\
**Created:** [December 10, 2019, 12:20pm UTC](https://community.hubspot.com/t/custom-module-for-triggering-classes/17638 "2019-12-10T12:20:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kihulane](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kihulane/32/52876_2.png) [@Kihulane](https://community.hubspot.com/u/Kihulane)\
**Post date:** [December 10, 2019, 12:20pm UTC](https://community.hubspot.com/t/custom-module-for-triggering-classes/17638/1 "2019-12-10T12:20:04Z")

</div>

**Is it possible to create a custom module for triggering classes in blog post html?**  
If a blog post creator enables the trigger in the edit blog view, it will add an extra class to the post-body or vice versa.

It can look something like this:

My main goal is to have a 2 different hero image area layout selection for blog posts. If there’s a wide picture , then use class A, if theres a narrow picture then use class B.

---

<div class="post-metadata">

**Author:** ![DanielSanchez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danielsanchez/32/48193_2.png) [@DanielSanchez](https://community.hubspot.com/u/DanielSanchez)\
**Post date:** [December 10, 2019, 1:01pm UTC](https://community.hubspot.com/t/custom-module-for-triggering-classes/17638/2 "2019-12-10T13:01:17Z")

</div>

Hi @Kihulane ,

U can create one custom module to header of your blog post. In this header u can create one field with the user that will an post, select type of header.

I use this for that Content Editor can disable one content. Look one example:

Is an dropdown field (choose field), when i use the value of options, to change a class of link in custom module.

**In content editor**

 ![disable.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/7/f718b0e92337ed3c3d8b8aa78e56ca0ac3d8f787.png)

**In Design Manager**

 ![card-link-postt.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/a/6a782c1f5a2d02d5b5f16ce987a8ddd055fb53fc.png)

You can use this to change the header class.

_ **I hope this content helps you.** _

Did this post help solve your problem? If so, please mark it as a solution.

Best Regards!

---

<div class="post-metadata">

**Author:** ![Kihulane](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kihulane/32/52876_2.png) [@Kihulane](https://community.hubspot.com/u/Kihulane)\
**Post date:** [December 11, 2019, 10:18am UTC](https://community.hubspot.com/t/custom-module-for-triggering-classes/17638/3 "2019-12-11T10:18:17Z")

</div>

Thank you @DanielSanchez

I will try this method out and will get back to you.

Gert
