Content that is embedded in your website should in certain cases not be shown untill a consent has been given. This concerns content like Iframes, YouTube movies or forms from HubSpot or LinkedIn. For these cases you can use a shortcode that will not display the content between the start and end tag unless a certain consent is given.
Use the following shortcode to exclude content;
The above example will not show its content if consent with the id ‘345’ has not been given. Instead of the content, the shortcode will show the required consent and allow a visitor to agree to the consent on the spot. Once the consent has been given the page will reload and the embedded content will be shown.
How do I get the “ids” in this shortcode
The ID in the shortcode can be acquired by opening the editscreen of the consent you wish to show and copying the ID from the bowser’s address bar. The number you need comes after “?post=”.
How do I display a placeholder? #
If you want to show a placeholder instead of the consent box on your page, place this short code [gdpr_consent_inactive_content] before the closing shortode [/gdpr_consent_embed] and between these two short codes place the content you would like to show when consent is not given.
How do I hide my consent without deleting it? #
If you want to hide a specific consent box on a page but do not want to delete the whole consent, you can if you add this short code widget=”false” to the No consent. This feature is disabled by GDPR
You can change the display text on the gdpr consent settings page.
how it looks on the front