views:

37

answers:

2

Hi,

Within my website that I am converting over into a WordPress CMS theme, there are 7 menu options that go to individual html pages.

My question is, what is the best way to get these 7 html pages into my WordPress CMS theme, i.e. is there a backend means or do I directly add these individual pages as the WordPress Admin?

I've currently got my menu options setup as follows:

<li><a href="index.html" class="topm currentMenu nosub">Home</a></li>
<li><a href="about-us.html" class="topm nosub">About Us</a></li>

Also, how do I link my menu to my pages as well in WordPress?

Thanks

A: 

Clarify your question. Do you want to be able to edit those html pages in WordPress admin? You can't. Pages have to be part of the WP backend and reside in the database to be editable in the editor.

If you just want those pages to be linked in the menus of the WP pages, they must be hardcoded in the header.php (or other page templates) as links, as static html pages can't be called by wp_list_pages or other WP php functions.

songdogtech
Hi @songdogtech, I deinitely would like my pages to be editable by the end user, i.e. text, add/remove images etc. Would really appreciate the best way to do this or pls point me to a website that demonstrates this. Thanks.
tonsils
Hi again @songdogtech - I am somewhat confused with your comment about "Pages have to be part of the WP backend and reside in the database to be editable in the editor." So I understand, are you saying that I just can't take a about-us.html page source, that I have created in Dreamweaver, go into WP-Admin, Pages, Add New Page and drop the html code into the html tab within the <code></code> tags, which might also include images for me to update again later on? If not, how else can I do it as these pages will not be STATIC pages? Thanks.
tonsils
A: 

"...take a about-us.html page source, that I have created in Dreamweaver, go into WP-Admin, Pages, Add New Page and drop the html code into the html tab within the tags..."

You can do that. But do not use the <code></code> tags (or the page will display your "raw" html.)

It should go something like this:

  • Create a new page, title "About".
  • Copy and paste the source code that is inside the <body></body> tag of your original "about.html" into the html editor (make sure you are in "html" mode -- not "Visual".)

(NOTE: <script> tags (and some other tags) will be stripped by WP when you submit the page.)

  • Your "menu options" (I assume this is your navigation?) can't point to "about.html" for this to work as a dynamic, WP-controlled page. Your new "About" page will likely appear in the navigation, anyway.
Troy