Created
July 8, 2019 00:42
-
-
Save lots0logs/9b6bb0b3d494f4d0bdf957955d97cb26 to your computer and use it in GitHub Desktop.
Render Dynamic Content In The Divi Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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> | |
); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.