Home › Forums › WordPress Themes – Premium › Pure & Simple › Complete blank page
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.
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
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.