{"id":4878,"date":"2018-08-14T06:54:11","date_gmt":"2018-08-14T06:54:11","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=4878"},"modified":"2019-04-18T13:31:24","modified_gmt":"2019-04-18T13:31:24","slug":"gdpr","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/gdpr\/","title":{"rendered":"GDPR Compliancy Component"},"content":{"rendered":"<p>This article is for\u00a0<a href=\"https:\/\/ampforwp.com\/amp-theme-framework\/\">AMP Theme Framework<\/a>\u00a0users.<\/p>\n<p>GDPR Component is for adding GDPR compliancy in your AMP theme.<\/p>\n<h3>How to use:<\/h3>\n<p>Following are the steps to use this GDPR component.<\/p>\n<p><strong>Step 1:<\/strong><\/p>\n<p>Just add the following code to the functions.php of the theme files.<\/p>\n<pre class=\"lang:default decode:true\">\/\/GDPR Compliancy\u00a0\nadd_amp_theme_support('AMP-gdpr');<\/pre>\n<p>This was the back-end part where we&#8217;ve just initiated, now to make it appear in the front-end follow the next step.<\/p>\n<p><strong>Step 2:<\/strong><\/p>\n<p>To add the <span style=\"background-color: #f6d5d9;\"><b>GDPR\u00a0<\/b><\/span>we need to call it.<br \/>\nexample: It is recommended to add it in footer.php to make it run on the whole site.<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php amp_gdpr(); ?&gt;<\/pre>\n<p>with this, you&#8217;re successfully able to add <strong>GDPR compliancy<\/strong>.<\/p>\n<div>\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n<\/div>\n<div>\n<div class=\"hkb-article__content\">\n<div class=\"hkb-article__content\">\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>This article is for\u00a0AMP Theme Framework\u00a0users. 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\u00a0 add_amp_theme_support(&#8216;AMP-gdpr&#8217;); This was the back-end&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/4878"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=4878"}],"version-history":[{"count":6,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/4878\/revisions"}],"predecessor-version":[{"id":7227,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/4878\/revisions\/7227"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=4878"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=4878"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=4878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}