Publishing & Settings

Adding Custom Code to a Page or your Entire Framer Site

Adding Custom Code to a Page or your Entire Framer Site

Adding Custom Code to a Page or your Entire Framer Site

·

2:28

·

44K views

·

About this lesson

In this tutorial, you'll learn how to add custom code to your Framer website. Whether you want to integrate tools like Intercom or Facebook Pixel, custom code allows you to enhance your site's functionality. Follow the step-by-step instructions to add code to your entire website or a specific page.

https://www.youtube.com/watch?v=5_oL9cvknUY&t=6s Finding the custom code section

https://www.youtube.com/watch?v=5_oL9cvknUY&t=10s Adding custom code to the head or body tag

https://www.youtube.com/watch?v=5_oL9cvknUY&t=17s Saving the custom code

https://www.youtube.com/watch?v=5_oL9cvknUY&t=22s Preview limitations

https://www.youtube.com/watch?v=5_oL9cvknUY&t=28s Publishing the website

https://www.youtube.com/watch?v=5_oL9cvknUY&t=32s Opening the website in a browser to see the custom code in action

https://www.youtube.com/watch?v=5_oL9cvknUY&t=68s Verifying Intercom chat functionality on the published site

https://www.youtube.com/watch?v=5_oL9cvknUY&t=77s Adding custom code to a specific page

https://www.youtube.com/watch?v=5_oL9cvknUY&t=92s Removing the custom code from the general section

https://www.youtube.com/watch?v=5_oL9cvknUY&t=96s Accessing the specific page

https://www.youtube.com/watch?v=5_oL9cvknUY&t=100s Pasting the custom code in the specific page's custom code section

https://www.youtube.com/watch?v=5_oL9cvknUY&t=109s Saving the custom code for the specific page

https://www.youtube.com/watch?v=5_oL9cvknUY&t=114s Republishing the site

https://www.youtube.com/watch?v=5_oL9cvknUY&t=123s Verifying custom code functionality on the specific page

https://www.youtube.com/watch?v=5_oL9cvknUY&t=128s Observing the absence of custom code on other pages

🌞 Try Framer for free: https://framer.com

🎉 Follow on Twitter: https://twitter.com/framer

💎 Join Community: https://www.framer.community

0:00so while framer allows you to build an0:02entire site without code0:04it also allows you to add some custom0:06code that runs on your entire website or0:08on a specific page0:10this is great for adding extra scripts0:12like running an intercom chat or adding0:16things like Facebook pixel the way you0:18add custom code is by going to your0:20project settings in the top right0:22heading over to the general tab0:25and scrolling all the way down to custom0:27code0:28this is where you can add custom code to0:30the start to the end of your head tag or0:33the start or the end of your body tag0:36I have a code snippet saved which will0:39load an intercom chat so I'm going to0:41paste that at the start of my head tag0:43and hit save0:45now because I've added this script to0:47the general tab of my project settings0:50this script will run on the entire0:52website0:53if I go back and hit preview0:58you will notice that nothing shows up so1:00with the script A intercom chat bubble1:02should show up in the bottom right but1:04we do not load custom codes in the1:07preview so you will have to publish your1:08website first and then open it in the1:11browser to see your custom code1:13so let's publish this website1:17then open in the browser1:20and you will see in the bottom right1:21that the intercom chat has loaded so we1:25can see the intercom chat works and this1:28will work on any page of my website1:32so if you want to run the script only on1:35a single page of your site so let's say1:36our website also has an about page1:40we can go back to our project settings1:43go back to General and remove the script1:45from our general custom code section1:49head over to the about page1:52and I'll paste it in the custom code1:54section of the above Page hit save again1:57and then publish the site2:00so now if I reopen the site in my2:03browser you will see that it runs on the2:05about page so the intercom chat shows up2:08here but if I go back to the home page2:13you'll notice that the intercom chat2:15does not show up here because we've only2:17added the script to the above page2:20so this is how you add custom code to2:22your entire project or a single page

Watch on YouTube ↗

More in this topic

Hard work, easy website. Get a Free Domain with Framer.0:20
Hard work, easy website. Get a Free Domain with Framer.
Announcement13M views · 4 months ago
This website never happened — Get a free domain with Framer0:22
This website never happened — Get a free domain with Framer
Publishing & Settings4.7M views · 4 months ago
Free Domains with Framer: Go Build It0:16
Free Domains with Framer: Go Build It
Publishing & Settings9.1M views · 4 months ago
Introducing Advanced Hosting in Framer2:28
Introducing Advanced Hosting in Framer
Announcement7K views · 4 months ago
Transferring Framer projects to clients2:04
Transferring Framer projects to clients
Publishing & Settings9K views · 5 months ago
Creating Remix Links in Framer1:29
Creating Remix Links in Framer
Publishing & Settings3K views · 6 months ago
How to get the most out of Framer for Free4:05
How to get the most out of Framer for Free
Animations15K views · 8 months ago
Optimizing Video files for the Web5:34
Optimizing Video files for the Web
Publishing & Settings12K views · 8 months ago

Create a free website with Framer, the website builder loved by startups, designers and agencies.