# P5.js with Divi in wordpress?

**URL:** <https://discourse.processing.org/t/p5-js-with-divi-in-wordpress/12148>\
**Category:** Libraries\
**Created:** [June 18, 2019, 1:04pm UTC](https://discourse.processing.org/t/p5-js-with-divi-in-wordpress/12148 "2019-06-18T13:04:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![othernode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/othernode/32/5598_2.png) [@othernode](https://discourse.processing.org/u/othernode)\
**Post date:** [June 18, 2019, 1:04pm UTC](https://discourse.processing.org/t/p5-js-with-divi-in-wordpress/12148/1 "2019-06-18T13:04:29Z")

</div>

Hi guys,

I am looking for a way to use p5.js inside the Divi builder in wordpress. does anyone have an idea if this would be possible and how to go about it?  
Thanks!

---

<div class="post-metadata">

**Author:** ![mcintyre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mcintyre/32/14561_2.png) [@mcintyre](https://discourse.processing.org/u/mcintyre)\
**Post date:** [June 18, 2019, 2:25pm UTC](https://discourse.processing.org/t/p5-js-with-divi-in-wordpress/12148/2 "2019-06-18T14:25:04Z")

</div>

Haven’t used Divi, but you can embed a p5.js sketch from the [Web Editor](https://editor.p5js.org/) pretty easily using WordPress’ built-in [Custom HTML blocks](https://en.support.wordpress.com/wordpress-editor/blocks/custom-html-block/). You may want to adjust the style of the embed to make full use of the block.

```auto
<iframe src="https://editor.p5js.org/username/embed/abcd1234" style="width: 100%; height: 100%; text-align: center;"></iframe>

```
