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.

How to add JavaScript

Overview

This article will show the different ways to add JavaScript to your mobile site. If your JavaScript isn't running when you navigate to the page try tuning off animated navigation, which can conflict with your JavaScript.

Please note that our support team cannot assist in troubleshooting custom code.

Head Section

Adding JavaScript to the head section of your site will add your script between the <head> and </head> tags on your mobile site. There are two ways to add JavaScript to the Head Section of your mobile site. You can add it into the Head Section of every page or add it to only the Head Section of a particular Page.

Every Page

In order to add JavaScript into the Head Section of every page on your mobile site, click on the gear at the top right -> Site Settings.

Next, click on the Advanced tab. There you'll see text box labeled Head Section. You can Place your JavaScript there, between <script> and </script>.

Particular Page

If you want to add a script for a particular page only, you'll click on the Pages tab at the left -> the page you want to add the script to -> SEO & Page Settings.

From there, click on Head Section and enter your script in the text box, between <script> and </script> tags.

Body

It is also possible to add JavaScript to the body of your mobile page. You can do this by using the HTML feature and dragging and dropping it onto the screen.

You can get more information about the HTML feature here. Again, be sure to enclose your script in <script> and </script>

 

 

×

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!