0

I'm trying to remove content from my homepage. I have just installed a theme and even if I set a blank page as a default page (homepage) the content get's added. I tried to figure out if it's a file causing but my experience is to less.

If I create a blank page it stays blank until I set it as CMS Home Pagein the backend.

Where can I find this file causing that and what do I have to delete/edit in order to get that removed?

  • You mean to say. You created a blank cms page. And it is run with some contents. RIght? – Ravi Soni Jun 26 at 19:36
1

You Can Add/Remove block using below code. open your theme xml file add below code

<?xml version="1.0"?>
    <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
        <body>
            <referenceBlock name="block_name" remove="true"/>
        </body>
    </page>
  • thanks for helping:( – Rv Singh Jun 27 at 5:41
  • Thank you for your help. I added the code but it did not work. There is still content on the homepage. – warum7 Jun 27 at 6:52
  • Nevermind my other comment. It was the storeview that was causing the problem, created a new one and add your code to the xml. Worked. Thank you very much! – warum7 Jun 27 at 14:11

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.