Make Completely Blank HTML Page in Wordpress(No Nav or Header)

10 replies
  • WEB DESIGN
  • |
I would like to make a traditional sales page on my wp woo canvas site.

I will message their support desk.

Anyways does anyone know how to be able to make a straight html page that displays no wordpress features such as sidebar, footer, or header/nav?

Will thank
Kyle
#blank #completely #header #html #make #nav #page #wordpressno
  • Profile picture of the author David V
    You can mix and match custom templates, headers, and footers if you want. You can't get rid of the header, just it's contents.
    You could copy an existing template then rename it:
    Code:
    <?php
    /**
     * Page Template (rename to your own)
     *
     * This template is the default page template. It is used to display content when someone is viewing a
     * singular view of a page ('page' post_type) unless another page template overrules this one.
     * @link http://codex.wordpress.org/Pages
     *
     * @package WooFramework
     * @subpackage Template
     */
    
    get_header();
    ?>
    Then you can do the same for headers/footer but slightly different.
    Copy the header and rename let's say to header-salespage.php
    Code:
    <?php
    /**
     * Header Template Sales Page
     *
     * Here we setup all logic and XHTML that is required for the header section of all screens.
     *
     * @package WooFramework
     * @subpackage Template
     */
    You can do the same for the footer if you want.

    Now you need to call the correct header on your new template like so:
    Code:
    <?php
    /**
     * Sales Page Template
     *
     * This template is the default page template. It is used to display content when someone is viewing a
     * singular view of a page ('page' post_type) unless another page template overrules this one.
     * @link http://codex.wordpress.org/Pages
     *
     * @package WooFramework
     * @subpackage Template
     */
    
     get_header('header-salespage');
    ?>
    Note that last line in that code:
    Code:
     get_header('header-salespage');
    Make sure to have the single 'tick' marks around the header template name.

    Now just modify your new header/footer/template the way you like to remove the extras.

    Note: Canvas uses an external loop php file as you see in the template code and in the theme root.

    All the code above is from the actual Canvas theme.
    There are better ways to do this, but they are more advanced. This is a pretty straight-forward and effective method most anyone can do.

    This is similar to what OptimizePress does. The have different headers/footers/template for the different page types.

    Note: It's advised not to delete anything from the custom template unless you know what your doing. Simply comment out the stuff you want to eliminate, THEN, after it all works spectacular, you can go and delete the stuff you commented out. This way you have a safety buffer.
    {{ DiscussionBoard.errors[7612366].message }}
  • Profile picture of the author David V
    I do want to point out something for those that don't read everything I wrote:
    There are better ways to do this, Canvas is a well written theme, but you will need to know what your doing. (don't edit core theme files or they will be overwritten on upgrade).
    @bathunter - the theme does not add any nav directly into the header, instead it uses hooks. So it would need to be filtered to remove for your template. In all likely-hood you may not need a custom header as long as you filter based on the template or content template. Browsing the canvas source code will tell you a lot.
    Browse the WT docs for their hook/filter list. The functions file in the root of the theme has a place for custom functions/filters/etc....
    If you want the fast-n-dirty way to display an html page without doing anything, there are more then a dozen plugins at wordpress.org that do just that.
    {{ DiscussionBoard.errors[7612716].message }}
  • Bathunter,

    You could also just make an HTML page, upload it to your host via FTP and then link it to your site (or not link it, whatever your intentions).
    Signature
    Outsource to the experts...

    We customize your Blog, eBook, Press Release and Sale Copy content with your message.

    {{ DiscussionBoard.errors[7613959].message }}
  • Profile picture of the author Campbell24
    What if I make a new template but leave out the <?php get_header() ; ?> ?

    Will there be a header then or no?
    Signature
    FREE SEO CONSULTATION/ADVICE (from a 7-figure earner)

    I will answer your SEO questions 100% for free.

    Just ask me whatever you want!
    {{ DiscussionBoard.errors[7620790].message }}
    • Profile picture of the author David V
      Originally Posted by bathunter View Post

      What if I make a new template but leave out the <?php get_header() ; ?> ?

      Will there be a header then or no?
      Will not work. The header has the DOCTYPE, etc....
      {{ DiscussionBoard.errors[7620809].message }}
  • Profile picture of the author Campbell24
    I'm messing with a PHP Template file right now. I'll see what happens. Thanks for such a detailed response David! And to ContentAuthority: I don't want to send my traffic to another domain because it looks bad to Google.
    Signature
    FREE SEO CONSULTATION/ADVICE (from a 7-figure earner)

    I will answer your SEO questions 100% for free.

    Just ask me whatever you want!
    {{ DiscussionBoard.errors[7620835].message }}
    • Profile picture of the author David V
      Originally Posted by bathunter View Post

      I'm messing with a PHP Template file right now. I'll see what happens. Thanks for such a detailed response David! And to ContentAuthority: I don't want to send my traffic to another domain because it looks bad to Google.
      Sounds good, your welcome.... Make sure to backup that php file.....
      {{ DiscussionBoard.errors[7620872].message }}
    • Originally Posted by bathunter View Post

      I don't want to send my traffic to another domain because it looks bad to Google.
      This would not send traffic to another domain. If you uploaded an HTML document to the root of your domain or a subdirectory the page would still be on the same domain, it just would not be a part of Wordpress. It would have no impact on search.
      Signature
      Outsource to the experts...

      We customize your Blog, eBook, Press Release and Sale Copy content with your message.

      {{ DiscussionBoard.errors[7623381].message }}
  • Profile picture of the author Austin E Anthony
    You may want to look into optimizepress theme if you cannot work out the php code. Creating salespage with optimizepress without header is really easy.
    {{ DiscussionBoard.errors[7620846].message }}
  • Profile picture of the author yukon
    Banned
    Your seriously over complicating this.

    Put the regular HTML sales page in a folder on your host & simply paste the URL wherever you want on the Wordpress site.

    If you don't need to pull data from the MySQL database there's no reason to touch the theme templates.

    keep it simple.
    Signature
    Hi
    {{ DiscussionBoard.errors[7624283].message }}

Trending Topics