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
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.
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:
(NOTE: <script> tags (and some other tags) will be stripped by WP when you submit the page.)