Jump to content

Please add Head code to Page output


Sonya*
 Share

Recommended Posts

There is a possibility to add code to body output. 

screenshot-2022_02.14-17_18_00.thumb.png.ce8ccbb9284b824b7ec26fe80854b56b.png

Can you add the same for Head code, please? 

This is the only thing where users with default and easy-mode themes have to mess up with the templates code and probably get upgrade headache. Additionally, users without HTML knowledge cannot add any code at all.

It starts by Ads Network (like AdSense) and ends with pop-up forms for Newsletter sign-ups (like Mailchimp). 

Link to comment
Share on other sites

  • 1 month later...

Just to show, that this is needed:

Usage examples

  • Mailchimp JS header code to display the native Mailchimp "Subscribe" block.
  • Add an ad network code.
  • Add custom fonts
  • and so on

All these people would and do mess globalTemplate to just add their custom JS scripts. Later on they are probably going to run into issues while updating. They cannot just disable the scripts for a test without editing HTML and CSS again and again.

Please consider this suggestion for the head code. It would be user-friendly for non-code customers and would allow debugging issues much easier.

It is not a big deal at all. I still use this https://invisioncommunity.com/files/file/7631-custom-head-and-body/ and it works like a charm. Unfortunately, not updated and not usable for Cloud starter package.

 

Link to comment
Share on other sites

24 minutes ago, Ghost Face said:

since it encourages bad pratice. You should avoid putting JS code in your head tags at all costs unless it's really necessary. 

This is true for professionals. Professionals can edit HTML and can also resolve the upgrade issues.

Non-code customers will not understand what you say. Google, Mailchimp and all other providers out there offer them ready-to-use snippets along with the instruction where to put it. And they will try to add them by messing templates. Even worse, they will forget their snippets later in the template bits. The scripts stay there forever, even if they are not needed.

You do not remove something that you do not see, do not understand and not aware of 😉  

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...