2. What is WordPress Theme?
Collection of files that work
together to produce a graphical
interface.
Functionality of website
without changing the basic
WordPress software.
11. Basic files for theme development
header.php (displays headers and navigation, contains HTML code)
index.php (home )
footer.php (Contains instructions for global footer , closes HTML tags.)
page.php (individual pages)
single.php (individual posts)
sidebar.php (displays sidebars, which can be set up in functions.php)
functions.php
style.css
1)From Scratch
13. Make Functional
functions.php is the main function file
Contains custom functionality for theme
Can be procedural or Object Oriented
Can include plugin-like code
- Create settings page in admin area
- Apply filters
- Perform actions etc
1)From Scratch
14. Basic functions defined by WordPress
Posts
the_title (outputs the title of the post)
the_excerpt (outputs the post excerpt)
the_content (outputs the full post content)
the_category (outputs the post categories)
the_author (outputs the post author)
the_date (outputs the post date)
the_post_thumbnail(outputs the post image);
the_tags (outputs the post tags)
See more on
http://codex.wordpress.org/Function_Reference/
1)From Scratch
16. Template Hierarchy
Category display
Template file used to render a Category Archive Index page
1) category-{slug}.php
2) category-{id}.php
3) category.php
4) archive.php
5) index.php
See more on
http://codex.wordpress.org/Template_Hierarchy
1)From Scratch
21. How to create child theme?
1. Creating Your Child Theme’s Folder
2. Creating Your Child Theme’s style.css File
3. Activating Your Child Theme
4. Making Further Alterations and Additions
22. style.css example of Child Theme
/*Theme Name: twentytwelve_chile
URI: http://twnty.tl
Description: Example child theme of twenty thirteen.
Author: Bijaya
Version: 1.0License:
GNU General Public License v2.0License
Template: twentytwelve
*/
@import url(../twentytwelve/style.css);