Common Ninja’s widgets can enhance your website with features such as popups, bars, notifications, and other over-the-canvas elements that need to load globally across your site. To ensure these widgets work effectively across every page, you’ll need to install Common Ninja’s script globally. This guide will walk you through the steps for adding the script on various GoDaddy platforms.
Install the Script Globally on GoDaddy
The method for installing the script depends on the type of GoDaddy platform you’re using. Follow the relevant instructions below.
GoDaddy Website Builder (Websites + Marketing)
If you’re using GoDaddy’s Website Builder (Websites + Marketing), you can add the script through the Site Settings.
- Log in to your GoDaddy account and open your Website Builder dashboard.
- Select Edit Site to open the site editor.
- Go to Settings > Site Settings.
- Scroll down to find a section called Site-Wide Code or similar (sometimes labeled Tracking).
- In the Header Code section, paste the Common Ninja script:
<script src="https://cdn.commoninja.com/sdk.js"></script>
- Save and Publish your changes to make sure the script is live on your site.
Note: This method is ideal for over-the-canvas widgets like popups, bars, and notifications. Some JavaScript functionality may be restricted due to security measures in GoDaddy’s Website Builder.
GoDaddy Managed WordPress Hosting
If you’re using WordPress hosted by GoDaddy, you have more flexibility and control over adding scripts globally. Here are two methods:
Method 1: Use a Plugin
- Log into your WordPress dashboard.
- Go to Plugins > Add New and search for a plugin like Insert Headers and Footers or Header Footer Code Manager.
- Install and activate the plugin.
- After activation, go to the plugin’s settings (usually found under Settings > Insert Headers and Footers).
- In the Header section, paste the Common Ninja script:
<script src="https://cdn.commoninja.com/sdk.js"></script>
- Save the changes. The script will now load on every page of your WordPress site.
Method 2: Edit the Theme (Advanced Users)
- In your WordPress dashboard, go to Appearance > Theme Editor.
- Open the
header.php
file for your active theme. - Locate the
<head>
section and paste the Common Ninja script just before the closing</head>
tag. - Save the file.
Warning: Directly editing theme files can cause issues if done incorrectly. Additionally, updates to the theme may overwrite this code, so using a plugin is generally recommended.
GoDaddy cPanel Hosting (Standard Web Hosting)
For users with a GoDaddy cPanel hosting plan, you have full control over the website’s code. Here’s how to install the script globally.
- Log in to your GoDaddy account and open cPanel.
- Go to File Manager and navigate to the root directory of your site, usually public_html.
- Open the main HTML or PHP file (e.g.,
index.html
orheader.php
). - Paste the Common Ninja script within the
<head>
section of your HTML file to ensure it loads on every page:<script src="https://cdn.commoninja.com/sdk.js"></script>
- Save the changes.
Note: Make sure you know HTML basics or consult a developer if you’re not comfortable editing HTML or PHP files directly.
GoDaddy Online Store
The GoDaddy Online Store platform has more limited options for custom scripts. However, you can try adding Common Ninja’s script via the available site settings.
- Log in to your GoDaddy Online Store dashboard.
- Select Settings from the main menu.
- Look for Site-Wide Code or Tracking (under Analytics or Advanced Settings).
- In the Header Code section, paste the Common Ninja script:
<script src="https://cdn.commoninja.com/sdk.js"></script>
- Save and Publish your site.
This method will apply the script across your entire site. However, note that certain JavaScript functionality may be restricted by GoDaddy’s Online Store.
Final Steps: Verify the Installation
- After adding the script to your GoDaddy site, open your website in a new browser tab.
- Check that the Common Ninja widget (e.g., popup, bar, or notification) appears and functions correctly across your site.
- You may want to clear your browser cache if you’re not seeing the widget right away.
Troubleshooting
If your widget doesn’t appear:
- Double-check that the script is correctly placed in the Header section.
- Clear your browser cache and refresh the page.
- Ensure your Common Ninja account and widget settings are active.
Conclusion
Adding Common Ninja’s script globally to your GoDaddy site ensures that over-the-canvas widgets like popups, bars, and notifications work seamlessly across all pages. By following these steps, you can easily enable global functionality for your Common Ninja widgets. For further assistance, feel free to contact Common Ninja support or consult GoDaddy’s support resources.
Comments
0 comments
Please sign in to leave a comment.