WebSite X5Help Center

 
MD Kamrul Hassan
MD Kamrul Hassan
User

How to add code to all pages?  en

Autor: MD Kamrul Hassan
Visitado 2037, Followers 1, Compartido 0  
Tags: code,head,html

Greeting sir?

hope all active users on the forum are fine :)

I need a help, I need to use code (html or any ) in all my page. but it will be so time consuming I have to select all pages then go to it's properties then add that code.

so, I tried to add that code to template Header and/or footer page..

but the problem is:
if I add to footer then the code is added in all page before </body> tag..

if I add to header then the code is added in all page after <body> tag

but for example, I need to add code to all pages before </head> tag ..

any way to do this without do it manually on all pages?

please leave a reply asap

thanks in advance

best regards

Publicado en
7 RESPUESTAS - 1 ÚTIL - 1 CORRECTO
MD Kamrul Hassan
MD Kamrul Hassan
User
Autor

thanks for your reply sir, but nope that not what i need.. i already checked that before post this :(

thanks again for your reply

best regards

Leer más
Publicado en de MD Kamrul Hassan
Andre E
Andre E
Moderator

I don't know what kind of code you mention. But if you use a text field and set it to html. This way the code will not be visible, but will be there. Tou need to copy it ones to all pages using copy paste after that you can edit it on the source file and all the pages are updated.

Hope this helps,

BR A

Leer más
Publicado en de Andre E
MD Kamrul Hassan
MD Kamrul Hassan
User
Autor

dear sir, that not wha i want :(

i want to palce a code in before end of head tag </head> and it needs to be copied to all pages (all exsingn and  all new page in future)..so, the best way i thik is to add that html code in header (in edit tempate part)

but the problem is if i add in header .. it add that html code after starting of body tag <body> not before closing head tag..

am i clear now? i hope so..

best regards

Leer más
Publicado en de MD Kamrul Hassan
Andre E
Andre E
Moderator

Ok, sorry, this you can do in the general page (first page in x5 when starting a project. Goto expert tab and use field website HEAD.

Leer más
Publicado en de Andre E
MD Kamrul Hassan
MD Kamrul Hassan
User
Autor

you mean home page? but if i add to home page that only added to home page only :(

however thanks a lot as you keep reply me to help me out

best regards

Leer más
Publicado en de MD Kamrul Hassan
Paul M.
Paul M.
Moderator

No, I think Andre means Step 1 - General Settings when he talks about the 'first page in X5'

Custome code added using the Expert tab will be effective on ALL pages throughout your site  Smile

Best regards...

Leer más
Publicado en de Paul M.