Documentation index

Integration & embedding options ›

How to use iubenda on a WordPress website


This is a guide on how to integrate iubenda with WordPress.

Caveat: WordPress.com does not allow the inclusion of Javascript. Therefore if you use WordPress.com, please use the direct link option.

What you need

In order to follow this guide, you need:

  • A WordPress blog or a website powered by WordPress, with access to the Admin panel (usually something like www.yourwebsite.com/wp-admin or www.yourwebsite.com/blog/wp-admin )
  • The embedding code of the privacy policy you want to integrate, that you can find while generating or editing your privacy policy. The embedding code looks like this:
    <a href=”https://www.iubenda.com/privacy-policy/775731″ class=”iubenda-white iubenda-embed” title=”Privacy Policy”>Privacy Policy</a><script type=”text/javascript”>(function (w,d) {var loader = function () {var s = d.createElement(“script”), tag = d.getElementsByTagName(“script”)[0]; s.src = “https://cdn.iubenda.com/iubenda.js”; tag.parentNode.insertBefore(s,tag);}; w.addEventListener ? w.addEventListener(“load”, loader, false) : w.attachEvent(“onload”, loader);})(window, document);</script>

How to integrate the privacy policy

As first, visit the admin panel of your WordPress website or blog, usually something like www.yourwebsite.com/wp-admin or www.yourwebsite.com/blog/wp-admin .

On your admin panel, visit the Widgets section, available from here:

The widget section will look like this:

Depending on the Theme of your choice, you should find different sections on the right, referring to the Sidebar or to the Footer. Each of the boxes on the right allows you to insert content in the respective sections of your WordPress website, so you must choose which of these sections you want to place the privacy policy link into. The most common choice is the Footer, but placing it in the Sidebar is still not a bad idea. You can, anyway, change this whenever you want.

So, after choosing the section, you must drag the Text box from the left to the section on the right, as shown by the screenshot below:

The widget will then open this way:

And you must paste here the iubenda embedding code, this way:

And hit save.

Now on your website you should see something like this:

If you see the privacy policy link, then everything worked fine 🙂

Video summarizing the integration process

The following video summarizes everything.


Still have questions?

Visit our support forum Email us