Skip to main content

Create a page without a header and footer

You can hide the header or the footer from any page of your platform, or hide both, by adding a custom CSS section to the page in the page builder.

Steps​

  1. In the side menu, click Manage the pages of your site, then choose the page you want to hide the header or footer from.

    The list of pages in the page builder and the pages icon in the side menu

  2. In the side menu, click Re-order / delete the sections of the page.

    The re-order or delete sections icon in the side menu

  3. Click Add a new section.

    The Add a new section button under the list of sections

  4. In the Add a section window, choose the Custom tab, then choose the Custom CSS section. This is the blue CSS card. Its name shows in Arabic.

    The Custom tab in the Add a section window

    The custom CSS section in the Custom tab

    Note

    A page can have only one Custom CSS section. If the page already has one, it does not show in this window, so click it in the list of page sections and add your code there.

  5. In the Custom CSS code (applies to the whole page) field, add the code for the part you want to hide.

    To hide the header:

    header,
    [id^="section-nav"],
    header[data-maglev-section-id] {
    display: none !important;
    }

    To hide the footer:

    footer,
    .footer__container,
    [id^="section-footer"],
    footer[data-maglev-section-id] {
    display: none !important;
    }

    To hide both the header and the footer, add both codes.

    The code that hides the header and footer in the custom CSS code field

  6. Click the Publish page button to save your changes and apply them to the page.

    The Publish page button at the top of the page builder