Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created July 8, 2019 00:42
Show Gist options
  • Save lots0logs/9b6bb0b3d494f4d0bdf957955d97cb26 to your computer and use it in GitHub Desktop.
Save lots0logs/9b6bb0b3d494f4d0bdf957955d97cb26 to your computer and use it in GitHub Desktop.
Render Dynamic Content In The Divi Builder
...
render() {
const title = this.props.dynamic.title;
const content = this.props.dynamic.content;
return (
<div>
<h2>{title.render()}</h2>
<div>{content.render('full')}</div>
</div>
);
}
...
@arobbins
Copy link

I'm running into the same issue as @MTaimoor79 . Does anyone know of a way around this?

Oddly enough, the dynamic content value is coming through correctly on the PHP side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment