WordPress.org

Ready to get started?Download WordPress

Forums

Use blank page ? (6 posts)

  1. michael_Barca
    Member
    Posted 1 year ago #

    Hi!

    I want to use a blank page. No other theme stuff, just a blank, black page that i can add something in that page like just a video trailer and nothing more (my menus, widget) just a blank page ?

    Best Regards

  2. jbusci
    Member
    Posted 1 year ago #

    make a page template with nothing in it.
    if you want to display content, you'll need the loop in there.

    blankPage.php

    <?php
    /*
    Template Name: Blank Page
    */
    ?>
    <html>
    <head><title>Blank Page</title>

    <style type="text/css">
    body background-color: "black";
    </style>
    <body>
    /**Your loop code**/
    </body>
    </html>

    If you want to reuse this template on a bunch of videos, you'll be better off creating a custom post type which is a little more coding involved.

    If you use this, you won't have any navigation at all, so it's really only useful IMO inside an Iframe.

  3. michael_Barca
    Member
    Posted 1 year ago #

    But they are something like this, i have found it now

    http://www.youtube.com/watch?v=_ynYnPCi_L0

    And thats what i need. I dont can find it.

  4. jbusci
    Member
    Posted 1 year ago #

    yeah, his theme has that template in it already.

    What I showed you is how to make that template.

    If your theme doesn't have that template you have to make it.

  5. michael_Barca
    Member
    Posted 1 year ago #

    Yes, i have make it. But its not only 1 trailer, if you understand my. I need to make blank page for every trailer. I have do that, the code that gived my and thats only for one page.

  6. jbusci
    Member
    Posted 1 year ago #

    yes, I understand. You have a special post type that you want to use.

    I could explain how to do this, but it might be easier to follow this instruction here

    http://wpmu.org/wordpress-custom-post-template-plugin-style-individual-posts/

Topic Closed

This topic has been closed to new replies.

About this Topic