Modernizing inline script tags for templates & JS API

You’ll have to move the api.decorateWidget(); part to the ‘JS’ tab under ‘Edit CSS/HTML’ in a theme. But do note that widgets are now deprecated; you’ll want to use plugin outlets.

2 Likes