0

I am looking to amend the link to the Privacy Policy in my Magento 2.3.x installation. It is currently pointing to /privacy-policy-cookie-restriction-mode however I would like it to point to /privacy-policy.

I have inserted the following code to default.xml and cleared my cache but it has no effect. I'm struggling to troubleshoot.

 <!-- Corrects Privacy Policy Link -->
    <referenceBlock name="footer_links">

    <block class="Magento\Framework\View\Element\Html\Link\Current" name="privacy-policy-cookie-restriction-mode">

    <arguments>

    <argument name="label" xsi:type="string">Privacy Policy</argument>

    <argument name="path" xsi:type="string">privacy-policy</argument>

    </arguments>

    </block>

    </referenceBlock>

2 Answers 2

0

Please check with footers links are have from two place :

  1. in cms block footer_links_block you can edit which will effect in footer
  2. all core module search referenceBlock="footer_links" in xml files where ever they added links and display in footer
11
  • I can not find the CMS block you are referring too?
    – Jimothy
    Jul 10, 2019 at 12:20
  • can you please check with xml / second option Jul 10, 2019 at 12:20
  • check with this path - vendor/magento/module-cms/view/frontend/layout/default.xml Jul 10, 2019 at 12:22
  • There is no such folder in my installation
    – Jimothy
    Jul 10, 2019 at 12:24
  • vendor/magento/module-cms/view/frontend/layout/default.xml Jul 10, 2019 at 12:24
0

the way I ended up fixing this issue is by removing the link from the footer and re-adding my custom Privacy Policy link to a static block in the footer.

Achieves the same result and looks like the cleanest solution to me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.