Ability to add widget code to Pages and Layouts

Currently, it appears that we only have the ability to add custom header/footer code through the site settings. This could be improved if pages and layouts had their own editable custom code fields to allow developers to add/remove the code depending on the function and visibility of specific pages/layouts.

I suppose in an ideal world it would be great to add the code in the settings still and choose whether it is global or for specific layouts or for specific pages.

Thanks in advance!

Ashley

You’re actually able to add any JS code inside pages and layouts, you just need to remove the tags.

I think this topic might be helpful: