Can I remove footer from a cms page ? and I added that page using admin panel .

default.xml  file 

<?xml version="1.0"?>
 * Copyright © Infortis. All rights reserved.
 * See COPYING.txt for license details.
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">


        <!-- <move name="breadcrumbs" destination="mycustom.div" before="-" /> -->
        <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-newsletter-subscriptions-link" remove="true"/>
        <referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>

        <move element="customer-account-navigation-orders-link" destination="customer_account_navigation" before="customer-account-navigation-address-link"/>
        <move element="customer-account-navigation-wish-list-link" destination="customer_account_navigation" after="customer-account-navigation-address-link"/>
        <move element="customer-account-navigation-my-credit-cards-link" destination="customer_account_navigation" after="customer-account-navigation-product-reviews-link"/>

        <referenceBlock name="base-footer-container">

            <!-- Static blocks -->
            <block class="Magento\Cms\Block\Block" name="block_footer_links_sec">
                    <argument name="block_id" xsi:type="string">block_footer_links_sec</argument>
            <block class="Magento\Cms\Block\Block" name="block_footer_social_section">
                    <argument name="block_id" xsi:type="string">block_footer_social_section</argument>
            <block class="Magento\Cms\Block\Block" name="block_footer_brands_banner">
                    <argument name="block_id" xsi:type="string">block_footer_brands_banner</argument>
            <block class="Magento\Cms\Block\Block" name="block_footer_end_liner">
                    <argument name="block_id" xsi:type="string">block_footer_end_liner</argument>
            <block class="Magento\Cms\Block\Block" name="block_footer_candidio_sec">
                    <argument name="block_id" xsi:type="string">block_footer_candidio_sec</argument>



Add below code in your CMS page > Design > Layout Update XML

<referenceContainer name="footer-container" remove="true" />

Clear Cache. It will remove Footer from Specific CMS page where you add above code.

  • This should work, was just about to post this solution. – codestr Dec 19 '17 at 17:19
  • @AbhishekPanchal I don't know why this is not working , I have cleared cache aswell. I think footer has been added custom. So where I can check its referenceContainer name? – Learner Dec 20 '17 at 6:56
  • You can check footer name in ‘Magento_Theme/layout/default.xml’ – Abhishek Panchal Dec 20 '17 at 10:38
  • I attached default.xml . and I just wanted to remove that block block_footer_candidio_sec . how Can I ? – Learner Dec 20 '17 at 10:40
  • for Complete header ?? – Manish Aug 2 '18 at 6:13

In backend, Content -> Pages -> Edit the right page -> tab "Design", field "Layout Update XML".

<referenceContainer name="content">
    <referenceBlock name="block_footer_candidio_sec" remove="true" />

Write me if you have any issues.

  • no its not working :( – Learner Dec 19 '17 at 19:23
  • Did you clear a cache? – Evgeny Levinsky Dec 19 '17 at 19:46
  • I don't know why this is not working , I have cleared cache aswell. I think footer has been added custom. So where I can check its referenceContainer name? – Learner Dec 20 '17 at 6:56
  • Could you show me Theme_Root/Magento_Theme/layout/default.xml? You can use pastebin.com service for post whole file – Evgeny Levinsky Dec 20 '17 at 7:28
  • done , I want to remove ' block_footer_candidio_sec' . check updated question. thank you – Learner Dec 20 '17 at 7:32

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.