Wordpress version: 4.9.6
All themes for worpdress are located in wordpress\wp-content\themes\ directory. To create a new theme, at first, you should create a directory inside it, for example wordpress\wp-content\themes\minhgdd\.
Sample directory tree
.
ββββwp-admin
ββββwp-content
β ββββthemes
β β ββββminhgdd
β β β ββββcss
β β β ββββjs
β β β ββββtemplate-parts
β β ββββtwentyfifteen
β β β ββββcss
β β β ββββgenericons
β β β ββββinc
β β β ββββjs
β β ββββtwentyseventeen
β β β ββββassets
β β β β ββββcss
β β β β ββββimages
β β β β ββββjs
β β β ββββinc
β β β ββββtemplate-parts
β β β ββββfooter
β β β ββββheader
β β β ββββnavigation
β β β ββββpage
β β β ββββpost
β β ββββtwentysixteen
β β ββββcss
β β ββββgenericons
β β ββββinc
β β ββββjs
β β ββββtemplate-parts
β ββββuploads
β ββββ2018
β ββββ06
ββββwp-includes
| File | Description |
|---|---|
style.css |
Required. This file is required for Wordpress to detect this directory a theme directory. |
screenshot.png |
Optional. This image displays on admin-site as a sample screenshot. |
/*
Theme Name: MinhGDD First Theme
Theme URI: http://example.com/minhgdd
Author: MinhGDD
Author URI: http://example.com/minhgdd
Description: This is MinhGDD's first theme for learning
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: learning, minhgdd
Text Domain: minhgdd
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
Source: https://codex.wordpress.org/Theme_Development#Theme_Stylesheet
*/