To manage multilingual sites with WordPress you can use the WPML plugin. WPML allows you to create multiple language versions of your site. Here’s how:
You must first generate the iubenda code that will output the banner to the site by following the instructions in this guide.
Now, simply go to the Embed page by clicking on the “Manage and Embed” link above your website name. This will take you back to the site flow/overview page of your dashboard. Click on the <>Embed button under Cookie Solution to head to the embed section. Once there, you’ll find your banner embed code.
If you’ve generated your policies in more than one language, there will be language tabs visible for each language you’ve activated for the policy. Each tab contains the code specific to the particular language of that policy:
Simply click on the tab for the language you want and copy the corresponding cookie banner code.
The code – which is similar to that in the example below – should be inserted before the closing of the
As mentioned, each language has its own code, the main difference being the id it’s pointed at.
You can use our WordPress plugin that will detect WPML and offer forms to copy-paste the above iubenda scripts:
Once the code has been generated by iubenda in the manner described above, it needs to be added in the
HEAD section in all of the pages of the site.