Getting Started

Create and deploy your first CTA widget in under 15 minutes.

StickyCTAs works on any WordPress site — no coding required. Choose the method that works best for your setup.

Your embed code: Find it in your dashboard under the widget's "Embed" tab.

1Using a Header/Footer Plugin (Easiest)

This is the easiest method and works with any WordPress theme. We recommend the free WPCode plugin.

Step 1: Install WPCode

In WordPress, go to Plugins → Add New, search for "WPCode", and click Install Now then Activate.

Step 2: Add Your Snippet

Go to Code Snippets → Header & Footer. Paste your StickyCTAs embed code in the Footer section.

Step 3: Save

Click Save Changes. Your widget will now appear on all pages.

Alternative plugins: "Insert Headers and Footers" by WPBeginner, "Header Footer Code Manager", or "Scripts n Styles" all work the same way.

2Using Theme Settings

Many popular themes have a built-in option for custom scripts. Check your theme's settings:

ThemeWhere to Find It
AstraAppearance → Customize → Custom Layouts (or use Astra Hooks)
GeneratePressAppearance → GeneratePress → Elements → Add New Hook
KadenceAppearance → Customize → Header/Footer Scripts
OceanWPTheme Panel → Scripts & Styles
Flavor themeFlavor → Options → Code Injection
Flavon themeFlavon → Options → Custom Code → Footer

Paste your embed code in the footer/scripts section and save. If your theme isn't listed, check its documentation for "custom scripts" or "code injection".

3Using Page Builders

If you use a page builder, you can add the widget globally or to specific pages:

Elementor

Go to Elementor → Custom Code (Pro) or use the free "Elementor Header & Footer Builder" plugin. Add an HTML widget with your embed code.

Divi

Go to Divi → Theme Options → Integration. Paste your code in the "Add code to the head/body" section.

Beaver Builder

Go to Settings → Beaver Builder → Global Settings. Add your code to the footer scripts.

Gutenberg (Block Editor)

Add a "Custom HTML" block to your page or use a site-wide scripts plugin. For global placement, use Method 1 or 2 above.

4Using functions.php (Advanced)

For developers who prefer code, add this to your theme's functions.php or a custom plugin:

add_action('wp_footer', function() {
    echo '<script src="https://www.stickyctas.com/widget.js" data-widget-id="YOUR_WIDGET_ID" async></script>';
});

Important: If you edit your theme's functions.php directly, your changes will be lost when the theme updates. Use a child theme or a code snippets plugin instead.

Show Widget on Specific Pages Only

Want the widget only on certain pages? Use conditional logic in functions.php:

add_action('wp_footer', function() {
    // Only show on homepage and contact page
    if (is_front_page() || is_page('contact')) {
        echo '<script src="https://www.stickyctas.com/widget.js" data-widget-id="YOUR_WIDGET_ID" async></script>';
    }
});

Common conditionals: is_front_page(), is_page('slug'), is_single(), is_shop() (WooCommerce).

WooCommerce Stores

StickyCTAs works great on WooCommerce stores. Use Method 1 or 2 above to add it site-wide, or use conditionals to show it only on product pages:

add_action('wp_footer', function() {
    // Show on product pages and cart
    if (is_product() || is_cart()) {
        echo '<script src="https://www.stickyctas.com/widget.js" data-widget-id="YOUR_WIDGET_ID" async></script>';
    }
});

Troubleshooting

Widget not appearing?

  • Make sure the widget is activated in your StickyCTAs dashboard
  • Check for JavaScript errors in your browser console (F12 → Console)
  • Clear any caching plugins (WP Super Cache, W3 Total Cache, etc.)
  • If using Cloudflare, purge the cache

Widget appears twice?

You may have added the embed code in multiple places. Check your theme settings, plugins, and any custom code for duplicates.

Conflicts with other plugins?

StickyCTAs is designed to work alongside other plugins. If you experience issues, try temporarily disabling other plugins to identify conflicts. Contact us if you need help.

Need help?

Our support team is happy to help you get set up on WordPress.

Contact Support