WordPress Create Theme Basic

WordPress is a free and open-source content management system based on PHP and MySQL.

In This Session We are talking about Creating wordpress theme from scrach.

This Blog also created by simple bootstrap theme from start bootstrap.

First of all we need to know about wordpress theme  hierarchy..

 

now we are going to create our first wordpress theme. inside the wp-content -> themes folder we create new folder call mytheme. inside the mytheme folder we create css file as style.css. then we create these comment code to top of the stylesheet page.

/*
Theme Name: My Theme
Theme URI: http://kushanshanuka.tk
Author: Kushan Shanuka
Author URI: http://kushanshanuka.tk
Description: New Theme Of openhub99.com
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: mytheme

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.
*/

now we have to add theme image inside to the mytheme folder. the image name should be screenshot.jpg

then navigate to Apprearance->Themes in wordpress admin panel. you can see following preview

Now we have to create index.php inside our theme folder. according to the wordpress theme  hierarchy all requests are pointing to the index.php file. you can echo something and check the activated our new theme, now its blank without any error means up to now every thing is ok.

 

 

0 0 votes
Article Rating

by kushan


Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments