# Dynamic Content in Wordpress

**URL:** https://forum.mautic.org/t/dynamic-content-in-wordpress/11685
**Category:** Product Support
**Created:** [November 15, 2019, 4:55pm UTC](https://forum.mautic.org/t/dynamic-content-in-wordpress/11685 "2019-11-15T16:55:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gabe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gabe/32/436_2.png) [@gabe](https://forum.mautic.org/u/gabe)
#### Post date: [November 15, 2019, 4:55pm UTC](https://forum.mautic.org/t/dynamic-content-in-wordpress/11685/1 "2019-11-15T16:55:14Z")

</div>

**Your software**  
My Mautic version is: 2.15.3  
My PHP version is: 7.2.24

**Your problem**  
My problem is: I’m trying to make a wordpress page adjust it’s content based on a field in Mautic. So I setup 2 non-compaign dynamic content fields in Mautic. I can get them to show up in Wordpress but the styling gets totally messed up.  
The html that I put into dynamic content goes through 2 very weird transformations.  
First, when I click save in Mautic, it adds `style="box-sizing: border-box;"` to every div, header, and paragraph element. Even though I’m exclusively using the code view, I can’t find any way to make it not alter my code.  
Second, when I review the dynamic content on my Wordpress page, all my `class` attributes are totally stripped and instead they are placed in `fr-original-class` attributes. Also, a bunch of additional styles are added in, from seamingly nowhere.  
Am I just massively misunderstanding dynamic content or is there a pretty big bug here?

These errors are showing in the log: There are no errors related to this in the log.

Steps I have tried to fix the problem: I posted a [bug on github](https://github.com/mautic/mautic/issues/8042) but nobody has responded.

---

<div class="post-metadata">

### Author: ![gabe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gabe/32/436_2.png) [@gabe](https://forum.mautic.org/u/gabe)
#### Post date: [November 15, 2019, 5:00pm UTC](https://forum.mautic.org/t/dynamic-content-in-wordpress/11685/2 "2019-11-15T17:00:35Z")

</div>

Am I doing something wrong here? Has anyone gotten dynamic content with html in it to work correctly in Wordpress?

---

<div class="post-metadata">

### Author: ![ascholten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ascholten/32/691_2.png) [@ascholten](https://forum.mautic.org/u/ascholten)
#### Post date: [November 18, 2019, 12:54pm UTC](https://forum.mautic.org/t/dynamic-content-in-wordpress/11685/3 "2019-11-18T12:54:05Z")

</div>

> **[CSS Rendering for Forms FAQ - Mautic](https://mautic.com/help/css-rendering-forms-faq/)**
>
> This FAQ is about CSS rendering for forms.

---

<div class="post-metadata">

### Author: ![ascholten](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ascholten/32/691_2.png) [@ascholten](https://forum.mautic.org/u/ascholten)
#### Post date: [November 18, 2019, 12:58pm UTC](https://forum.mautic.org/t/dynamic-content-in-wordpress/11685/4 "2019-11-18T12:58:33Z")

</div>

have you checked adding it ta a Landingpage in Mautic to see if Wordpress is the problem

---

<div class="post-metadata">

### Author: ![gabe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gabe/32/436_2.png) [@gabe](https://forum.mautic.org/u/gabe)
#### Post date: [July 21, 2020, 5:53am UTC](https://forum.mautic.org/t/dynamic-content-in-wordpress/11685/5 "2020-07-21T05:53:00Z")

</div>

I’m about 90% sure the problem is with the Froala editor and it’s summarized well on this [Github issue](https://github.com/mautic/mautic/issues/7272)
