您需要在 wp-content/theme 下创建一个带有index.php
and 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
*/