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.

Get in Touch

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
A man is typing on a laptop computer on a wooden table.
By Melody Jaimon June 6, 2025
Many overlook the footer, but in 2025 it’s a strategic asset. Explore footer design ideas that can enhance your website’s performance. Read the full blog.
A man is typing on a keyboard while another man points at a computer screen.
June 2, 2025
Discover the 2025 software development process from a marketer’s perspective. Learn how modern dev cycles, agile methods, and cross-functional collaboration impact marketing success.
A person is using a cell phone in front of a laptop.
By Melody Jaimon May 26, 2025
Microsoft Teams Not Syncing on Mobile? Here's the Real Fix (2025 Guide) If your Microsoft Teams app isn't syncing on your iPhone or Android, you're not alone — and no, it's not just a glitch. This quick, step-by-step guide shows you how to fix Teams not syncing on mobile in under 2 minutes. No tech jargon, no guesswork — just the actual solution that works in 2025. Perfect for remote teams, business owners, and anyone who relies on Teams for work. 👉 Click here for the fix that actually works
A laptop computer is open to a website on a wooden table.
By Melody Jaimon May 23, 2025
Over 58% of Google searches end without a click. Find out how zero-click searches impact website traffic and what marketers can do to stay visible.
A woman is sitting at a table using a laptop computer.
By Melody Jaimon May 15, 2025
SEO pricing in Australia ranges widely in 2025. Learn what impacts cost, what to avoid, and how Love My Online Marketing structures SEO for ROI. Read more.
A person is holding a cell phone in their hand with social media icons coming out of it.
By Melody Jaimon May 15, 2025
This strategic 9-post monthly plan helps you stay consistent on social media, boost engagement, and simplify your content creation. Read the full guide.
Google Business Profile zoomed in by magnifying glass
By Melody Jaimon May 14, 2025
Learn how to add a digital marketing agency to Google Business Profile in this quick step-by-step guide with photos.
A woman is sitting at a desk using a laptop computer.
By Melody Jaimon May 13, 2025
Worried about YouTube suspension? Learn the top causes and how to avoid them to keep your channel safe, secure, and thriving. Read the full guide now.
A man is using a smart phone with social media icons coming out of it.
By Melody Jaimon May 12, 2025
Launched your site? Learn practical ways to promote your new website design on social media using creative, engaging post ideas that boost visibility and drive traffic. Read the full guide now.
A notebook with the words call to action written on it
By Melody Jaimon April 8, 2025
Effective CTAs guide users through your site and drive action. Learn best practices for creating clear, visible, and persuasive CTAs that actually convert.
More Posts