Crown Street, Wollongong, 2500

Custom Code Guidelines

Melody Jaimon • Dec 09, 2022

Our editor is quite versatile in the sense that you may extend the feature of your site by adding any custom script or code, though custom code has the tendency to break or deactivate the editor or take additional steps to work. As a result, we have certain rules for you to follow while testing custom code.

HTTP vs HTTPS

If you're dealing with custom code, you should be aware that scripts and resources can only be loaded inside the same HTTP or HTTPS session.


The editor is always loaded through HTTPS by default. When you use an HTTP script in the editor, it will not be seen since it is loaded over a secure connection, but it will be visible on the live site because it is loaded over an unsecured connection.


To fix this, always load your resources through a secure connection.

Custom Header Code

When adding custom code to a header, make a copy of the site and test your code on the duplicate site. If it fails, simply remove the site.


You can also test the header code on a separate blank page on the same site. If the page crashes, just delete it or go into developer mode to access the code.

Custom Page Code

When adding custom code:


  1. Make a copy of the page, then insert your custom code.
  2. If that fails, you can get to the HTML/CSS of the page by moving to another page and entering developer mode from there.
  3. You may also duplicate the page and remove it to start again.
  4. If your homepage contains custom code, you can try visiting your editor by adding/contacting another URL to the end of your editor's link.

Page Speed Optimization

Page speed optimization has an impact on how some scripts are executed. PageSpeed optimization is enabled on most pages in Website Builder, which may create problems with your custom code. When troubleshooting code, you may determine whether it is a PageSpeed issue by:


  1. Using your scripts, duplicate the page.
  2. Change the URL to "testing_scripts".
  3. Publish and check the page on your live site.


If your code functions properly on that page, contact support to disable PageSpeed optimization for your site.


If you're using a script, you can also try making sure it runs asynchronously. This won't always fix the problem of scripts not executing right in the browser.


To enable async on scripts, make the following changes to your code:


  • Old code: <script src="https://example.com/script.js"></script>
  • New code: <script src="https://example.com/script.js" async defer></script>

Disable Animated Navigation

The dynamic navigation function of Website Builder sometimes interferes with the way custom code is loaded. In responsive sites, you may stop animated navigation by right-clicking your navigation element in the editor, selecting Edit, and then clicking Turn off animated navigation.

Troubleshooting

When a site is broken by custom code, the editor usually loads a blank page (or breaks your editing features). If your site was broken by custom code, you have many options:



  • If you have a backup, go to the left panel and select Settings, Backup Site, then Restore to Backup.
  • Log in to http://my.Website Builder. co?nossl, our platform's code-friendly version.
  • If you can't get to it in your editor by loading it, you might be able to work around it by loading a new page.
  • To resolve this issue, open your editor on a new page. You may accomplish this by changing the URL in your editor link. This is a link to a site's "About Us" page, such as https://my.Website Builder. co/home/site/XXXXXXXX/about
  • If the editor is malfunctioning, try forcing it open by using the element inspector's keyboard shortcut.
  • Mac. Command+Option+C
  • PC. Ctrl+Alt+C

Website Builder's Custom Code Policy

We cannot troubleshoot why a custom-coded element may not work on a site due to the unpredictable nature of custom code.


We do not have any developers available to debug custom code at the moment, so please follow the recommendations above when experimenting with custom code on your site.

See How Our Agency Can Drive Massive Amounts of Traffic to Your Website

Website Design designed for your audience and to be found on Google Searches
SEO - unlock relevant and increased SEO traffic. 

Paid Media - effective paid strategies with a clear ROI.

Get Started

Love My Online Marketing has 10+ Years of working alongside businesses and helping them grow. Discuss your options for online success from website Design and Development through to Google Marketing. Book a Free 20min Discovery Call.

Book A Discovery Call

Do you want more traffic and business leads?

Love My Online Marketing is determined to make a business grow. Our only question is, will it be yours?

Let's Chat
Blue Facebook logo
By Melody Jaimon 07 May, 2024
This article will provide you with clear instructions on how to give access to a Facebook page without sharing your password by adding an admin.
Google My Business zoomed in by magnifying glass
By Melody Jaimon 28 Mar, 2024
Learn how to add a digital marketing agency to Google My Business in this quick step-by-step guide with photos.
logo of Meta and a person looking at the phone
By Melody Jaimon 27 Mar, 2024
Discover the secrets of adding a digital marketing agency to Facebook Ads Manager with this comprehensive step-by-step guide, featuring helpful photos to guide you along the way. Say goodbye to confusion and hello to success with this must-read tutorial.
smartphone apps with notifications
By Melody Jaimon 18 Mar, 2024
Find out the best times to post on popular social media channels so that you can reach more of your audience. Among those covered are Facebook and Instagram.
A person is holding a cell phone in their hand showing the Facebook Messenger and Instagram icons
By Melody Jaimon 13 Feb, 2024
This article explains why and how to set up auto-replies on Facebook Messenger and Instagram.
man typing on a keyboard
By Melody Jaimon 08 Feb, 2024
Animation not only adds visual appeal but it also enhances user experience and engagement. Read this blog to find out how animation contributes to the success of a web design.
woman typing on a keyboard
By Melody Jaimon 06 Feb, 2024
Enhance your online presence effortlessly with a perfect mix of SEO and web design techniques. Read here to explore practical tips to boost visibility and climb the search engine rankings.
a man clicking on domain on an augmented reality UI
By Melody Jaimon 01 Feb, 2024
Have you been given access to your domain by your agency? Learn how to manage your domain access in this blog post.
man working on a laptop
By Melody Jaimon 15 Jan, 2024
Learn the latest Google Business Profile updates affecting website creation - essential insights for online business owners.
modern web designing
By Melody Jaimon 22 Dec, 2023
Microinteractions are subtle yet powerful in enhancing user experience. Learn their role in modern web design to elevate your online presence and boost customer engagement.
More Posts
Share by: