2013-10-07 91 views
2

我只是有點困惑與HTML轉換爲WordPress。HTML to wordpress轉換頁面

我有以下的HTML頁面「關於我們,聯繫我們,團隊」等...

在WordPress

做我有太多打造「關於us.php,聯繫Us.php,Team.php」 或 創建ContentPage.php和WordPress的我創建的網頁「關於我們,聯繫我們,團隊


我也在想創造的‘關於us.php,聯繫us.php,Team.php’那麼應在用戶可以更改文字的位置添加標籤

找不到關於此的解釋的教程。

+0

你可以看看這個鏈接,很多關於wordress的教​​程:http://www.creativebloq.com/web-design/wordpress-tutorials-designers -1012990 – JunM

+0

謝謝:),這些只是更多的WordPress的教​​程,我正在尋找html太WordPress教程,謝謝你的想法,雖然 – LeRoy

回答

3

不,您不必爲每個頁面創建單獨的php文件,相反,您可以創建一個page.php文件,用於在顯示任何頁面時使用的所有頁面,以及從Wordpress管理面板創建頁面從Pages菜單。如果您的模板文件夾中有page.php文件,則WordPress將使用此模板來顯示每個頁面,否則將使用index.php文件。您還可以爲特定頁面創建自定義頁面模板。一個基本的網頁模板的例子/結構(沒有任何格式化和HTML標籤)

get_header(); // adds the header (header.php) 
if (have_posts()) : while (have_posts()) : the_post(); 

    the_title(); // prints title of the page 

    the_content(); // prints content/body of the page 

endwhile; endif; 

get_sidebar(); // adds the sidebar (sidebar.php) 
get_footer(); // adds the footer (footer.php) 

這些是用於模板文件共同的結構和功能,但你應該瞭解更多信息法典瞭解creating a page template並根據添加formatting/HTML到您網站的佈局。此外,請檢查Convert HTML to WordPressIntegrating WordPress with Your Website

+1

謝謝:)我終於明白now.its就像創建一個模板,其他頁面也跟着(如asp框架)一些其他的鏈接,幫助[鏈接1](http://www.wphub.com/tutorials/convert-a-html-template-into-a-wordpress-theme/)[鏈接2]( http://wp.smashingmagazine.com/2013/05/15/migrate-existing-website-to-wordpress/) – LeRoy

+0

不客氣:-) –