Is there any way to make the HTML block render JS/PHP code?
Hey Nomad! You can put Javascript code in the HTML widget, but you can’t do PHP unfortunately.
If you need PHP functionality within a widget, you could look into creating a custom widget.
Just a heads up, do be careful when using JS in the HTML widget. Things can get a bit hairy if you introduce a JS error on a Beaver Builder page since so much of the UI is generated with Javascript.
Hi Robby,
Thanks for the heads up.
I was trying to insert a Google Search div, with the code that Google supplies. Works fine in the text box for the header, so I thought I’d test it in the body with an HTML block.
Oh!! Couldn’t a widget be used then?