How To Create WordPress Theme – For Beginners

Step by step tutorial to create a basic wordpress theme

In the wordpress development best practice is when you create your own theme . Wordpress theme is combination of .php files . In wordperss , web page is not directly created with html . In wordpress theme .php files generate web pages dynamically .

To understand and create your own wordpress theme is not so difficult . You have required some compulsoury things to develop wordpress theme.

Create header.php file

Create a header.php file in the theme (goodies) folder . header.php is file to used to create webpage header of your wordpress theme .

Code of header.php is following . Code start with <!DOCTYPE html> and end at <body> . All of the code may be in html form . But <?php wp_head(); ?> is required to run header.php . This function is used to register header file .

Create sidebar.php file

Create a sidebar.php file in the theme folder . sidebar.php is used to create or display sidebar on your wordpress webpage . In the following code <?php register_sidebar(); ?> is used to register sidebar in theme . register_sidebar() is placed at the end of the sidebar.php content .

footer.php file

create a footer.php file in the theme folder . footer.php is user to create webpage footer . In the following code wp_footer() is used to register footer content . wp_footer() is placed on at just before </body> tag .

index.php

Create a index.php file in the theme folder . This file is used as index page or main page of your wordpress website . index.php code is as following .

In this index.php get_header() is used to call your registerd header.php file . <h1>this is the test </h1> code is content of the index page . get_sidebar() function call the sidebar.php file created in your theme . In the next line get_footer() function call the footer.php file created in your wordpress theme previously

Manu Mahajan Born 26 Dec 1980 ,Is a founder of Tectrick and MM Toy World.
www.tectrick.org is a free digital helping guide on many usable topics to the readers in various method such as Youtube videos , Articles and social media conversation
MM Toy World is manufacturer , wholesaler and online retailer of soft toys, personalized gifts ,toys corporate gifts .