set HTML page within wordpress theme

Discussion in 'WordPress' started by netgo, Nov 7, 2010.

  1. #1
    I have a wordpress site, and I would like to have 3,4 pages prepared as html files (including the homepage) which will not be in the default wordpress theme but look like landing pages (and I will build them from scratch or have a totally blank sub theme) -
    How can I do this?
     
    netgo, Nov 7, 2010 IP
  2. thedark

    thedark Well-Known Member

    Messages:
    1,346
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    168
    Digital Goods:
    1
    #2
    Just create the html files and post the content.

    Or, go to page.php file template, and when you see <? get_header(); ?> , make it as following <? if($post->ID!=PAGEID) get_header(); ?>

    The PAGEID should be your page ID. Do this for your get_sidebar and get_footer. This will make your website to not write the code for header,footer or sidebar for the page specified by the pageid. You can do that in your whole template, if there is a specific page number show something, else show something else.
     
    thedark, Nov 7, 2010 IP