{"id":28517,"date":"2025-06-24T10:28:34","date_gmt":"2025-06-24T14:28:34","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=28517"},"modified":"2025-06-24T10:28:36","modified_gmt":"2025-06-24T14:28:36","slug":"how-to-add-do-not-sell-or-share-my-personal-information-link-in-the-footer-manually-6","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-gdpr-pro\/v1\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually","title":{"rendered":"How to Add &#8220;Do Not Sell or Share My Personal Information&#8221; Link In The Footer Manually"},"content":{"rendered":"\n<p><a href=\"\/magento-gdpr\">Plumrocket GDPR Pro<\/a> extension automatically adds the <strong>&#8220;Do Not Sell or Share My Personal Information&#8221; <\/strong>link to the store&#8217;s footer. However, due to different footer implementations in the Magento themes, it may not always work correctly.<\/p>\n\n\n\n<p>In cases when the link doesn&#8217;t display automatically, or if you need full control over its position, you can add it manually.<\/p>\n\n\n\n<p><strong>In this article, we will consider two ways to add the &#8220;Do Not Sell or Share My Personal Information&#8221; link manually:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-buttons\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-vivid-cyan-blue-background-color has-background\" href=\"#h-add-the-link-using-the-phtml-theme-template\">1. Using .phtml theme template<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-vivid-red-background-color has-background\" href=\"#h-add-the-link-using-the-cms-block\">2. Using CMS-block<\/a><\/div>\n<\/div>\n\n\n\n<h2 id=\"h-add-the-link-using-the-phtml-theme-template\">Add the link using the .phtml theme template<\/h2>\n\n\n\n<p>This method allows for generating this link dynamically using PHP and Magento layout systems. Such an approach is recommended if you want to automatically substitute the link name (label) and path specified in the extension settings.<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">&lt;?= $block->getLayout()\n->createBlock(\n    \\Plumrocket\\GDPR\\Block\\CcpaLink::class,\n    'pr.ccpa.link.created.in.template',\n    ['data' => [\n        'label' => $this->helper(\\Plumrocket\\GDPR\\Helper\\Config\\DoNotSellConfig::class)->getFooterLinkLabel(),\n        'path' => $this->helper(\\Plumrocket\\GDPR\\Helper\\Config::class)->getGdprCmsPageIdentifier(),\n    ]]\n)\n->toHtml();\n?><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Open your theme&#8217;s footer template: <kbd>footer.phtml<\/kbd> (or other appropriate file, depending on the structure of the theme)<\/li><li>Insert the code mentioned above in the needed place<\/li><li>Flush the Magento cache: <code>bin\/magento cache:flush<\/code><\/li><li>Check the results on the frontend<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<h2 id=\"h-add-the-link-using-the-cms-block\">Add the link using the CMS block<\/h2>\n\n\n\n<p>This option should be used when the store&#8217;s footer is being formed via CMS blocks. This could be a customization result or standard behavior of specific themes (for example, Hyv\u00e4). In this case, you should edit the corresponding CMS blocks manually.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Important Information:<\/p>\n\n\n\n<p>You can&#8217;t dynamically read the link name and path. The label and path parameters should be specified manually<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">{{block class=\"Plumrocket\\GDPR\\Block\\CcpaLink\" name=\"pr-gdpr-link\" label=\"Do Not Sell or Share My Personal Information\" path=\"do-not-sell-or-share-my-personal-information\"}}<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Go to <strong>Content -&gt; Blocks<\/strong> in your Magento admin panel.<\/li><li>Find the <strong>CMS block<\/strong> that is used by your theme for the footer formation on the frontend.<\/li><li><strong>Edit this block<\/strong> and <strong>add the code<\/strong> mentioned above to the needed place.<\/li><li>Save the changes and make sure that the <strong>block is displayed correctly<\/strong> on the page.<\/li><li>Flush the Magento cache: <code>bin\/magento cache:flush<\/code><\/li><\/ol>\n<\/div><\/div>\n\n\n\n<h2 id=\"h-conclusions\">Conclusions<\/h2>\n\n\n\n<p><a href=\"\/magento-gdpr\">Plumrocket GDPR<\/a> extension tries to insert the <strong>&#8220;Do Not Sell or Share My Personal Information&#8221;<\/strong> in the footer automatically. However, depending on the theme you use, additional manual changes may be required.<\/p>\n\n\n\n<p>You should use the <strong>CMS block method<\/strong> if you need to display the link in the footer, which is formed via CMS blocks (which often happens in modern themes such as Hyv\u00e4).<\/p>\n\n\n\n<p>If the footer is implemented in the .phtml template, it is more appropriate to use <strong>insertion through a template<\/strong> to dynamically display the link name and path.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plumrocket GDPR Pro extension automatically adds the &#8220;Do Not Sell or Share My Personal Information&#8221; link to the store&#8217;s footer. However, due to different footer implementations in the Magento themes, it may not always work correctly. In cases when the link doesn&#8217;t display automatically, or if you need full control over its position, you can &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-gdpr-pro\/v1\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Add &#8220;Do Not Sell or Share My Personal Information&#8221; Link In The Footer Manually&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[418],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add &quot;Do Not Sell or Share My Personal Information&quot; Link In The Footer Manually - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Plumrocket GDPR Pro extension automatically adds the &quot;Do Not Sell or Share My Personal Information&quot; link to the store&#039;s footer. However, due to different\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add &quot;Do Not Sell or Share My Personal Information&quot; Link In The Footer Manually\" \/>\n<meta property=\"og:description\" content=\"Plumrocket GDPR Pro extension automatically adds the &quot;Do Not Sell or Share My Personal Information&quot; link to the store&#039;s footer. However, due to different\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-24T14:28:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-24T14:28:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add \"Do Not Sell or Share My Personal Information\" Link In The Footer Manually - Plumrocket Documentation","description":"Plumrocket GDPR Pro extension automatically adds the \"Do Not Sell or Share My Personal Information\" link to the store's footer. However, due to different","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually","og_locale":"en_US","og_type":"article","og_title":"How to Add \"Do Not Sell or Share My Personal Information\" Link In The Footer Manually","og_description":"Plumrocket GDPR Pro extension automatically adds the \"Do Not Sell or Share My Personal Information\" link to the store's footer. However, due to different","og_url":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually","og_site_name":"Plumrocket Documentation","article_published_time":"2025-06-24T14:28:34+00:00","article_modified_time":"2025-06-24T14:28:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually","name":"How to Add \"Do Not Sell or Share My Personal Information\" Link In The Footer Manually - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2025-06-24T14:28:34+00:00","dateModified":"2025-06-24T14:28:36+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"Plumrocket GDPR Pro extension automatically adds the \"Do Not Sell or Share My Personal Information\" link to the store's footer. However, due to different","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-data-privacy\/v3\/devguide\/add-do-not-sell-or-share-my-personal-information-link-manually#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 GDPR","item":"https:\/\/plumrocket.com\/magento-gdpr"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-gdpr"},{"@type":"ListItem","position":4,"name":"v1","item":"https:\/\/plumrocket.com\/docs\/magento-gdpr\/v1"},{"@type":"ListItem","position":5,"name":"Developer Guide","item":"https:\/\/plumrocket.com\/docs\/magento-gdpr-pro\/v1\/devguide"},{"@type":"ListItem","position":6,"name":"How to Add &#8220;Do Not Sell or Share My Personal Information&#8221; Link In The Footer Manually"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28517"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=28517"}],"version-history":[{"count":1,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28517\/revisions"}],"predecessor-version":[{"id":28520,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28517\/revisions\/28520"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=28517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=28517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=28517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}