This help center supports the Legacy platform Dudamobile. As of April 1st, 2019 new sites cannot be created, existing sites will remain live with the same functionality and editor access.

Email support and phone support (for Duda customers on Team plans and above) will be available until September 30th, 2019. Self service customer support will remain.

It’s a Great Time to Go Responsive! - Responsive design is the best way to create engaging online experiences on today’s web. With that in mind, we encourage you to take this as an opportunity to replace your old desktop-only websites and their mobile friendly counterparts with new responsive sites that will work seamlessly across desktop, tablet and mobile.

Custom coding guidelines

Overview

Our editor is very flexible in that you can extend the functionality of your site by adding any custom script or code, though the custom code has a tendency to break or disable the editor or require other steps to be done to work. Because of that, we have some guidelines that you should follow whenever testing custom code.

HTTP vs HTTPS

If you're working with custom code, it's good to know that scripts and resources can only be loaded in the same HTTP or HTTPS.

The editor by default is always loaded in HTTPS. If you're using an HTTP script in the editor, it will not be visible in the editor since it's loaded over a secure connection but will be visible on the live site since it's loading in an unsecured connection.

To fix this, it's always better to load your resources over a secure connection.

For code that needs to be placed in the header

Create a duplicate of the site, then test your code on the duplicate site. If it fails, you can simply delete the site.

Alternatively, you can test the header code on a separate, blank page on the same site. If the page crashes, simply delete the page or access the code via developer mode.

For code that needs to be placed on a page

  1. Create a duplicate of the page, then add in your custom code.
  2. If it fails, simply delete them and start again by creating a duplicate.

Always disable animated navigation

Duda's animated navigation feature often interferes with the way the custom code is loaded. You can disable animated navigation in DudaOne sites by going to Design >>> navigation >>> customize navigation >>> settings >>> turn off animated navigation.

Notes and considerations

If custom code broke your site, be sure to file a report here.

Troubleshooting

Help! Custom coding broke my site!

A site that is broken by coding normally loads a blank page in the editor (or breaks your editing features). If custom code broke your site, there are several options available to you.

  • If you have a backup, restore to it from site settings >>> backup versions >>> restore to backup.
  • If that doesn't work, try logging into http://my.duda.co?nossl which is a more code friendly version of our platform.

 

×

Please Log in as a Pro

Priority Phone Support is available exclusively to Pros. Log in to your Pro account now to see our international support numbers.

Log In
Not a Pro? Purchase a Pro plan!