WebSite X5Help Center

 
Terry W.
Terry W.
User

Editing DOC_TOP with Custom Code?  en

Auteur : Terry W.
Visité 1554, Followers 1, Partagé 0  

Hi,

   I need to add custom code to DOC_TOP for every page I create on my site so it loads before anything else. The code looks like this:

<?php require_once("/home1/myserverfolder/public_html/mysite/x771/plugin_secure/managerstart.php");session_set_cookie_params(0, '/'); session_start(); ?>

Where can I add this code? Where is the editing location? Is it inside an .ini file or config file?

Regards,

Terry

Posté le
2 RéPONSES
Esahc ..
Esahc ..
Moderator

Terry, in step 3 Map you can highlight any page, select properties (bottom RH side), then select Expert

If the code is the same for every page, I believe you can add it in step 1 Settings, Advanced, Statistics, SEO and Code, Expert and it should be applied on every page (hopefully someone will correct me if I am wrong).

Lire plus
Posté le de Esahc ..
Terry W.
Terry W.
User
Auteur

Great! Thank you very much!

Lire plus
Posté le de Terry W.