WordPress template theme imitation site development tutorial 2-create theme files

WordPress template theme imitation site development The first step is to create the theme file
  1. Create a folder under the root directory of your website \wp-content\themes to store your theme files. The folder is named in English and cannot contain Chinese. .
  2. Create style.css in the newly created theme folder, fill in your theme information and theme style under this file

 /*
Theme Name:您的主题名字
Theme URI:http://www.主题网址.com/
Description:主题描述。。。。
version:版本1.0.1
Author:作者名
Author URL:http://www.作者链接.com/
Tags:标签名,标签名2
*/
body{background:#f5f5f5;}
.index-left{background:#fff; width:600px;float:left;margin:15px;    box-shadow: 0 4px 8px 0 rgb(255 254 254 / 20%), 0 6px 20px 0 rgb(206 206 206 / 19%);
}
.index-right,.index-right2{background:#fff; width:300px;float:left;;margin:15px;    box-shadow: 0 4px 8px 0 rgb(255 254 254 / 20%), 0 6px 20px 0 rgb(206 206 206 / 19%);
}
.link{width:800px;background:#fff;;margin:15px;    box-shadow: 0 4px 8px 0 rgb(255 254 254 / 20%), 0 6px 20px 0 rgb(206 206 206 / 19%);
}


3. Upload a picture file named screenshot.png under this file, which will be used as the cover picture of the new wordpress theme

WordPress theme cover image
4. Create a css images js file in this folder to store theme files and an index.php file as your theme homepage, and you can start your wordpress template theme imitation site development road

Previous: Wordpress Template Theme Development Imitation Station Tutorial One-Wordpress File Cognitive Explanation

Guess you like

Origin blog.csdn.net/qq_39339179/article/details/115109911