• I simply want to make a completely blank page without headers, menu, anything. I want to be able to change the background color of that page to blue. Can I make a blank page by uploading a blank-page.php with the following code:

    <?php
    /**
    * Template Name: Blank Page
    *
    * A blank custom page template.
    *
    * The “Template Name:” bit above allows this to be selectable
    * from a dropdown menu on the edit page screen.
    *
    */
    ?>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
    <?php endif; ?>

    If yes, where can I upload this code? Will there still be white edges?

Viewing 1 replies (of 1 total)
  • Theme Author OptimizerWP

    (@layerthemes)

    @blazsek you cannot do that, the wp_head and the wp_footer tags must be inserted in your template file becuase these 2 functions are needed to load wordpress. If you want to hide the header and footer, we suggest you to do that with Custom CSS.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Blank page’ is closed to new replies.