你需要創建一個模板,位於下的wp-content /主題index.php
和CSS
(style.css文件),並從後端激活它。如果你不想有任何WordPress的功能,並有一個基本的佈局,你可以創建即使。
對於實施例 -
在\htdocs\wordpress\wp-content\themes\yourthemename
創建的index.php和郵政編碼等 -
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage yourthemename
*/
和在style.css中使用此CSS
/*
Theme Name: yourthemename
Theme URI: http://wordpress.org/extend/themes/troop
Author: Swapnesh Sinha
Author URI: http://swapneshsinha.wordpress.com/
Description: nice theme from wordpress labs.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
看看[Wordpress Codex](http://codex.wordpress.org/)並閱讀一下Wordpress的功能,其主題和插件。 WordPress是一個功能強大的CMS,可用於博客以及靜態頁面。 – Spontifixus