K korosa Chevereto Member Oct 14, 2024 #1 đź’ˇDescribe your Feature request I think it would be great if it were possible to add custom code to </head> in the control panel without unnecessary problems. Upvote 1 Downvote
đź’ˇDescribe your Feature request I think it would be great if it were possible to add custom code to </head> in the control panel without unnecessary problems.
K korosa Chevereto Member Oct 20, 2024 #3 SunnyBlueSkies said: You can, under Dashboard --> Settings --> Themes Click to expand... This is not the best option for me because it wraps the code in <script> but Code: <script>window.yaContextCb=window.yaContextCb||[]</script> <script src="https://another site/ads/system/context.js" async></script>
SunnyBlueSkies said: You can, under Dashboard --> Settings --> Themes Click to expand... This is not the best option for me because it wraps the code in <script> but Code: <script>window.yaContextCb=window.yaContextCb||[]</script> <script src="https://another site/ads/system/context.js" async></script>
Rodolfo đź‘‘ Chevereto Godlike Chevereto Staff Administrator Oct 20, 2024 #4 There are several methods to achieve this: From Dashboard > Settings > Theme (you need JS syntax) From Dashboard > Settings > Banners (you can use a banner slot to add any HTML) Using custom hooks: https://v4-docs.chevereto.com/developer/customization/theme.html#custom-hooks If you are using Docker it is easy as mount the custom_hook file path in your container settings to "inject" the file on runtime. Hope it helps.
There are several methods to achieve this: From Dashboard > Settings > Theme (you need JS syntax) From Dashboard > Settings > Banners (you can use a banner slot to add any HTML) Using custom hooks: https://v4-docs.chevereto.com/developer/customization/theme.html#custom-hooks If you are using Docker it is easy as mount the custom_hook file path in your container settings to "inject" the file on runtime. Hope it helps.