block dev : how to display a complex html tags
-
Hi
I have created a “block”, i want to display a complex html tags, so the el() can’t help. How can i include and return a php page for the save() function?blocks.registerBlockType('quantr-widgets/example-widget', { title: 'Quantr Block', icon: 'universal-access-alt', category: 'layout', edit: function (props) { return el( 'p', { style: blockStyle }, 'Quantr Block (from the editor)' ); }, save: function () { return el( 'p', { style: blockStyle }, 'Quantr Block (from the frontend)' ); } });
thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘block dev : how to display a complex html tags’ is closed to new replies.