Crown Street, Wollongong, 2500

Custom Code Guidelines

Melody Jaimon • December 9, 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
Leave a review card
By Melody Jaimon February 5, 2025
Google Business Profile reviews can be one of your most successful digital marketing tactics, and the best part is that it's free! Whether you run a small local business or a large enterprise, having a steady stream of positive reviews can significantly impact your online presence and customer trust. 
A book titled brand identity sits on a desk next to a keyboard
By Melody Jaimon January 21, 2025
Branding has evolved from ancient symbols to modern strategies shaping businesses. Explore its history, milestones, and future innovations. Read more now!
A smiling woman in glasses working on a laptop in a bright office.
By Melody Jaimon December 17, 2024
Learn how to streamline your marketing efforts with our guide to setting up an effective direct mail campaign. Discover tips for targeting your audience, crafting compelling messages, and boosting response rates for maximum impact.
woman browsing using her phone
By Melody Jaimon November 25, 2024
In this article, we highlight the importance of technologies that help iPhone users tackle cyber threats and have a safe browsing experience.
Laptop displaying LinkedIn logo and tagline on blue screen, with plant in the background.
By Melody Jaimon November 5, 2024
Learn how to add admins to your LinkedIn Page in this step-by-step guide. Boost engagement, improve page management, and expand team collaboration on LinkedIn with ease!
collaboration at work
By Melody Jaimon November 3, 2024
Create impactful annual reports for charities and non-profits by focusing on audience needs, maintaining consistency, and paying attention to design elements. Read more here.
a man clicking on domain on an augmented reality UI
By Melody Jaimon October 29, 2024
Have you been given access to your domain by your agency? Learn how to manage your domain access in this blog post.
black-themed website
By Melody Jaimon October 16, 2024
Learn the pros, cons, and latest trends in black website design. Find out how this bold aesthetic impacts user experience, branding, and site performance. Read more here.
seo concepts on paper
By Melody Jaimon October 11, 2024
Protect your website from Google algorithm updates with white hat SEO techniques. Learn strategies to enhance your organic rankings while adhering to Google's best practices.
woman using a laptop and writing an e-mail
By Melody Jaimon October 1, 2024
This guide will teach you step by step how to set up an email marketing campaign with MailChimp. Learn to use this powerful tool!
More Posts
Share by: