Hi everybody,
If I want to create a new template for a product, where can I add <head> script please only for this template ?
Google Tag Manager
Monday, November 25, 2024 7:28:22 PM
Hi Laurent,
If you want to create an independent template for single product, with independent <head> section, you would need to create also new Layout cshtml file, like _ColumnsOne.cshtml, it's in the Shared directory. then _Root.cshtml, and finally _Root.Head.cstml file. In the _Root.Head.cshtml file, you will find the whole <head> section. Is this what you were looking for?
If you want to create an independent template for single product, with independent <head> section, you would need to create also new Layout cshtml file, like _ColumnsOne.cshtml, it's in the Shared directory. then _Root.cshtml, and finally _Root.Head.cstml file. In the _Root.Head.cshtml file, you will find the whole <head> section. Is this what you were looking for?
Best regards,
Patryk
GrandNode Team
Patryk
GrandNode Team
0