GDPR Consent Plugin
Frequently Asked Questions
GDPR Consent Plugin General
If you would like to translate the backend, you can use Loco Translate.
Do you want the frontend translated of your privacy setting page, you could use WordPress Multi language plugin (WPML), and the consents you add can be written in any language you like.
GDPR Consent Plugin Shortcodes
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 [gdpr_consent_embed ids=”3,4″ so it ends up looking like this [gdpr_consent_embed ids=”3,4″ widget=”false”],
You can change the display text on the gdpr consent settings page.
how it looks on the front
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;
[gdpr_consent_embed ids=’345′] -content goes here- [/gdpr_consent_embed]
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=”.
Your users will want to be able to choose between the different consents that your website provides. The plugin comes with a shortcode that you can place in a pages content. The shortcode will then display an overview of the available consents, which settings they have per consent and an option to ‘forget’ the consents.
Place the following shortcode in a page to display the consents dialog:
[gdpr_consent_settings]
Notes
- Set up at least one consent, or the dialog will not show anything
- Once you have made this page, be sure to add a link to your footer (or visibly anywhere else) so visitors can find the page again to change their consents.
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.
GDPR Consent Plugin Styling
If the consent bar doesn’t seem responsive, this might be caused by CSS of the active theme or a plugin. To force the bar to size properly, you can use this CSS snippet in your theme customizer, child theme CSS file, or at any other decent spot:
#gdprc_bar .container {
width: 100% !important;
}
As of version 1.3.4 custom CSS can be added like the above snippet. The bar (and consent screen) can also be styled according to corporate branding.
If you use version 1.2.6. or higher, use this code in your css-file :
.gdprc_item__icon {
display: none;
}