Clicky

  1. Home
  2. GDPR Compliancy Component

GDPR Compliancy Component

This article is for AMP Theme Framework users.

GDPR Component is for adding GDPR compliancy in your AMP theme.

How to use:

Following are the steps to use this GDPR component.

Step 1:

Just add the following code to the functions.php of the theme files.

//GDPR Compliancy 
add_amp_theme_support('AMP-gdpr');

This was the back-end part where we’ve just initiated, now to make it appear in the front-end follow the next step.

Step 2:

To add the GDPR we need to call it.
example: It is recommended to add it in footer.php to make it run on the whole site.

<?php amp_gdpr(); ?>

with this, you’re successfully able to add GDPR compliancy.

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on April 18, 2019

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.

    Was this article helpful?

    Leave a Comment