Consent and third-party content

Show videos, maps and booking tools from other hosts only after a visitor agrees, with a clear placeholder and without a cookie banner of a third party.

For site owners and agencies · Leitvia Studio · Administrator · Checked with Leitvia 1.2.69 and Leitvia Studio 1.3.65

All of this needs the free plugin Leitvia Studio. The theme alone shows embeds the way WordPress does.

What visitors see

An embed from YouTube, Vimeo, X, Spotify, SoundCloud or TikTok shows a placeholder instead of the content. It names the provider, says what loading sends, links the privacy policy of the provider and offers:

  • Load content from … loads it once.
  • Always allow … on this site remembers the choice in this browser.
  • Open on … opens the content on the site of the provider.

Nothing is loaded from the provider before the click.

The page Product tour of the site Tidepost with a YouTube video behind the consent placeholder: the heading Content from YouTube, a sentence on what loading sends, the link Privacy policy of YouTube, the button Load content from YouTube, the check box Always allow YouTube on this site and the link Open on YouTube.
A YouTube video before consent.

Check the settings

  1. Open Leitvia Studio › Settings, tab Privacy.
  2. Keep Ask visitors before loading embedded content from other sites on. It is on by default.
  3. Keep Allow Gravatar for users and commenters without a local picture and Load the emoji script of WordPress off. Both send the IP address of visitors to other hosts.
  4. Under Map tile server, keep the default (OpenStreetMap) or enter another server for the map images of the Map block.
  5. Choose Save settings.

For your privacy policy, open Who receives which data, for your privacy policy at the end of the tab. It explains each setting in plain words.

The tab Privacy of the Settings of Leitvia Studio with the switches for Gravatar, consent before embedded content and the emoji script, the field Map tile server, the section Providers of embedded content with Add provider, and the button Save settings.
The privacy settings of Leitvia Studio.

Embed a tool of another provider

For a configurator, a booking tool or a video file on another host, add the provider once, then place the block Embed behind consent.

  1. In Leitvia Studio › Settings, tab Privacy, under Providers of embedded content, choose Add provider.
  2. Fill in Name, Hosts (the addresses the content comes from), Purpose and Privacy policy of the provider. Choose Save settings.
  3. In the editor, add the block Embed behind consent and enter the Address of the content and a Title for screen readers.

The page shows the placeholder with the name, purpose and privacy policy of the provider. Name each provider in your privacy policy.

The section Providers of embedded content in the privacy settings of Leitvia Studio after Add provider, with the fields Name and Hosts of a new provider.
A new provider for the block Embed behind consent.
The block editor with the block Embed behind consent selected and its settings in the sidebar, among them Address of the content and Title for screen readers.
The block Embed behind consent in the editor.

Let visitors change their mind

  1. Open your privacy policy page in the editor.
  2. Add the block Consent settings and choose Save.

Visitors see every provider they always allow and can revoke each one. The footers of the theme also hold the link Cookie settings. It opens a dialog on every page that says what needs consent on this site and links the privacy policy.

The dialog Cookie settings on the site Tidepost, opened from the link in the footer, with a short text on consent, a link to the privacy policy and the button Close.
The dialog behind the link Cookie settings in the footer.
For developers: scripts of other plugins

Scripts of other plugins, such as statistics or ads, can wait for consent too, in the categories Statistics and Marketing. A developer names them with the filter leitvia_studio_consent_scripts; the hooks reference has the details.