Streaming live at 10am (PST)

How to add custom code in the beginning of <body> tag?


#1

I Have a facebook plugin that requires entering a lines of code in the beginning of body tag
how can I put this code???


#2

http://help.webflow.com/adding-custom-code


#3

In this link they are talking about putting code ate the end of body tag
and I want to put the code in the beginning.
can i do that??
anyway thanks for reply


#4

Hi @Husein_M_ur, if you need to put code after the beginning of the body tag, I suggest you take that script code, and put an embed widget at the very start of your page where you will be having the Facebook stuff, and the first element on your page after the root Body element, will be the embed widget, and paste your code there. Can you try that, and see if that works for you ?

Cheers, Dave


#5

Sorry I've read your question too fast.


#6

Thanks for you mr. @cyberdave it works. smile you had solved a very big problem in my project
the Webflow Staff are really kind and professionals... wink


#7

no problem @vincent it was solved


#8

Hi Dave,
i just read your suggestion on how to integrate custom code at the beginning of the body tag. Unfortunately the site I want to add code to was built already a while ago and has some 30 pages.

Is there any way to include the custom code right behind the body tag which would not involve copying and pasting the embed widget more than 30 times?

The code I want to embed is the Google Tag Manager.

Thx, Clemens


#9