views:

177

answers:

4

Hello,

Just wanted to know how do i add static html pages to WordPress? For example, let say i have page products.html, how would i add it to wordpress (any menu, etc) and once added, how do i visit them because wordpress had a typical url structure.

Thanks.

+2  A: 

The static page functionality of WordPress is called, cleverly, "Pages." You can read all about them here: http://codex.wordpress.org/Pages

Scott Cranfill
@Scott: I am not talking about these pages, at your link i read this "Pages are not files. They are stored in your database just like Posts are." I am talking about custom html pages i create in dreamweaver.
Sarfraz
I'm sorry if I misunderstood. Should they have the same layout (header, navigation, etc.) as your regular WordPress pages?
Scott Cranfill
@Scott Cranfill: i can give them any layout as i will write html css for the pages. thanks
Sarfraz
Ok, so they're not "added to WordPress" in any meaningful way, then. Right? Just upload the files to the same directory as your WordPress index page, then link to that location however you see fit.
Scott Cranfill
+1  A: 

Do you mean Page Templates?: Page Templates « WordPress Codex. You can make a new page template and modify the php and xhtml of it (and add static html), and then use that template when you generate a new Page in the wordpress editor.

If you simply add a static html file to your wordpress directory, it may or may not work, depending on mod rewrite.

songdogtech
+1  A: 

To do what you describe, put the products.html page in your public_html directory. Edit your wordpress theme's header.php file to add to the menu section a link to the products.html page. You may have to use an absolute path in the URL depending on how you have things setup.

If you want to retain the wordpress navigation on the products.html so you can browse back to the wordpress parts of your site, you'll need to replicate the header html within that page.

Based on this drawback and depending on your requirements I'd recommend considering using either pages or page templates as suggested in the other answers so that the products page is part of the wordpress layout and you can take advantage of a shared navigation / look and feel etc.

Kris C
+1  A: 

Actually, try custom post types

tomcat23