Reply To: Complete blank page

Home Forums WordPress Themes – Premium Pure & Simple Complete blank page Reply To: Complete blank 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