• triciatjia

    (@triciatjia)


    Hi,

    Anyone knows how can I add a blank page on a wordpress site.

    Currently I’m using a template for my site and whenever I add a new page, it always includes the header, footer, sidebar,etc.

    Apart from pages that includes those(eg:homepage,contact us,etc), I wanted to add another blank page where I can write my own content without any graphic from my initial template.

    Cheers,

    Tricia

Viewing 4 replies - 1 through 4 (of 4 total)
  • Arru

    (@arru)

    Hi Tricia,

    That’s what I did:

    1. Made a child theme for my current theme.

    2. Made template for blank page. To do it I copied parent themes page.php to my child themes catalogue and renamed it page-blank.php. Deleted stuff about headers-footers and left just the loop.

    3. I Created new page with title “Blank” and it worked. There were few words about comments, author and date, but otherwise blank. WP will use template page-something.php to show page titled “Something”.

    Thread Starter triciatjia

    (@triciatjia)

    Hi Arru,

    That means, whenever I create the page-x.php (and save it under the wp-content/themes/whatevername, then put the title ‘x’ to my new page, it will appear as what it is on the .php code?

    Cheers,

    Arru

    (@arru)

    If wp-content/themes/whatevername is folder for your current theme or child theme, then yes.

    It works with posts and archives too… You can see from Template Hierarchy which template will be chosen to show some content.

    And about pages it’s useful to know that if you start that page-x.php with:

    <?php
    /**
     * Template name: Something
     * .....
     * .....
     */
    ?>

    Then you’ll have the option to use that “Something” template for every page you create.

    Thread Starter triciatjia

    (@triciatjia)

    Hi Arru,

    Really great and useful information. Thanks for that!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add New Blank Page’ is closed to new replies.