3

I am trying to remove the lower links in Magento. For example using the blank theme it will show:

Privacy and Cookie Policy <br/>
Search Terms <br/>
Contact Us <br/>
Orders and Returns <br/>
Advanced Search

To remove the top links I added this to my default.xml

<referenceBlock name="top.links" remove="true" />

Is there a name I am missing? I have tried things like bottom.links, footer.links, ect. Everything I can think of and still no luck. Is it a name space I am missing?

  • I could not get chance to check M2 but can you please look at CMS and Static blocks? i hope you will find solution there. – Jai Nov 24 '15 at 3:35
2

Name of your block as footer_links

<referenceBlock name="footer_links" remove="true" />

You can add this code in app/design/frontend/<Vendor>/<name>/Magento_Theme/layout/default.xml

  • PaW@ I tried but not working at file location app/design/frontend/vendor/theme-frontend-luma/Magento_Theme/layout/default.xml – Abdul Nov 24 '15 at 7:09
  • What is theme your store using now ? – Bill Nov 24 '15 at 7:13
  • magento 2 default theme "luma" – Abdul Nov 24 '15 at 7:18
  • you should add my code in app/design/frontend/Magento/luma/Magento_Theme/layout/default.xml and try again – Bill Nov 24 '15 at 7:20
  • Still not working – Abdul Nov 24 '15 at 7:23
0

Add below content in default.xml

<referenceBlock name="footer_links" remove="true" />

path : magento/vendor/theme-frontend-luma/Magento_Theme‌​/layout/default.xml

<referenceBlock name="footer_links" remove="true" />

after added content open terminal(Command promt) ctrl+Alt+t

Run below commands :

  1. sudo cd /project_path_directory/
  2. sudo php bin/magento setup:static-content:deploy
  3. sudo php bin/magento indexer:reindex
  4. sudo php bin/magento cache:flush
  5. sudo php bin/magento cache:clean
  6. sudo rm -rf var/*

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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