I want to add javascript code just before head open tag

I want to add a javascript code just after open head tag for SEO and Ads tracking purpose. How can I do it ?


Webflow offers the opportunity to use custom code [plan limitations exist] in the Head but controls the placement of that area. You could use JavaScript to write a tag to the head if you wish but generally speaking script placement within the head is not really an issue unless there are dependencies. If you export your project you can do what you wish.

Hello Jeff Selser,

Thanks for quick reply.
Yes, we can add javascipt code in head, but not in just before opening tag of head.
Webflow must provide it’s facility to place and code just after opening head tag.

Export code is not a solution. If anyone can export then why people will use Webflow in next time ?

Thanks

If you have an idea for an improvement of the product, then the place to make the case is the Wishlist.

Hello Jeff,

Please let me know How can I place my idea in Wishlist ?

Thanks

Visit Webflow Wishlist then search to make sure another similar or exact wish does not exist. If one does you could vote for it. If not, you could create a new one.

Hello Jeff,

Thanks for reply, Let me check that Webflow Wishlist link.

Please help me another issue, In my Webflow website default webflow css file having approx 8 fonts at last. I do not want to use those fonts.
Please let me know How can I remove those fonts from default webflow css file ?

Thanks

Find every instance of a class used that has the given font selected. That triggers the loading of the font by Webflow. Personally I just scan the generated CSS for the undesired fonts and using the selector to locate the element in the designer.

Let me explain in detail.
For ex: this is that default webflow generated css file:

if I open that css file in browser then I am seeing approx 8 fonts are appearing at last.
I want to remove those 8 fonts in the css file.

Thanks

Let me explain in detail.
For ex: this is that default webflow generated css file:
< link href = " https://webflow.com/xxxxxxxxx/css/aaabbb.webflow.cccc.min.css" rel=“stylesheet” type="text/css " / >

if I open that css file in browser then I am seeing approx 8 fonts are appearing at last.
I want to remove those 8 fonts in the css file.

Thanks

When you style an element in the designer and select a font face, that font will be loaded by the site on publish.

You can’t access the Webflow generated CSS file for editing directly. You can edit your styles in the designer which generates the CSS output when published.

But I am seeing those fonts also listed in setting Fonts tab.
All those fonts are there also delete button also showing. If I delete those font then will it remove fonts from Webflow generated css file ?

Thanks

But I am seeing those fonts also listed in setting Fonts tab.
All those fonts are there also delete button also showing. If I delete those font then will it remove fonts from Webflow generated css file ?

Thanks