Complete blank page

Home Forums WordPress Themes – Premium Pure & Simple Complete blank page

This topic contains 1 reply, has 2 voices, and was last updated by  Sushil Adhikari 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46462

    Jan
    Participant

    How do I create a complet blank page in theme Pure & Simple.
    I want to create a salespage without header, menu and footer, just a nice and clean white page.

    #46470

    Sushil Adhikari
    Moderator

    Hi Jan,

    You need to create a blank custom template file with a name ‘page-{slug}.php’ for instance; page-blank.php inside your child theme folder.
    Here is the complete code on how to create a blank custom template file;

    <?php
    /**
    * Template Name: Blank Page
    *
    */
    ?>
    <body id="top" style='background-color:"white";'>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
    <?php endif; ?>
    </body>

    After saving the template file you have to go inside your particular page in the Dashboard and choose your template as “Blank Page” inside page attribute.Then you can update the page. It will give you a complete blank white page as per your requirement.

    Note:
    However you wont be able to pull the script of any of your other templates or use any of the plugins including your style.css file.Please use your child theme so that changes won’t be lost upon theme updates.If you have any further queries please let us notify.

    Regards,
    Sushil

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.