SlideShare a Scribd company logo
WordPressTheme
Development
-Bijaya Kumar Oli
bj.aspire@gmail.com
What is WordPress Theme?
 Collection of files that work
together to produce a graphical
interface.
 Functionality of website
without changing the basic
WordPress software.
Theme Makes from
 HTML
 PHP
 CSS
 IMAGES
Some examples
of
WordPress Themes
 WordPress Theme Development
 WordPress Theme Development
 WordPress Theme Development
Way of develop themes
1)From Scratch
2) Customizing themes
3) Build Child Theme
Minimum files require
 style.css
 index.php
1) From Scratch
Basic Layout of website
1)From Scratch
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
Define Theme Description
D
Define theme description on
style.css
/*
Theme Name: Wordpress Sanothimi
URI: http://wordpress.org/
Description: Clean Responsive thene.
Author: Bijaya Oli
Author URI: facebook.com/bijaya.oli
Version: 1.0
Tags: black, blue, white, two-columns,
License: License
URI: General comments (optional).
*/
1)From Scratch
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
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
Custom Page Templates
Method of define custom template
<?php
/*
Template Name: Product Page
*/
?>
1)From Scratch
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
Customizing Themes
 Customize existing themes
 Customize style, layout, functions etc.
 Add page templates
 Add custom post type, widgets
Starter Themes
Develop theme using starter themes.
(popular starter theme)
1) Underscores
http://underscores.me/
2) Bones
http://themble.com/bones/
Example of Starter theme (underscore)
Example of Starter theme (bones)
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
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);
Screen shot
of child theme
At backend
 WordPress Theme Development
How child theme works?
Questions?
Thank You
Contact me :
bj.aspire@gmail.com
facebook.com/bijaya.oli

More Related Content

PPTX
Wordpress theme development
PDF
WordPress Theme Development
PDF
planejamento HTM5 e CSS3
PPT
CSS Introduction
PPTX
Css ppt
PPTX
PPTX
How WordPress Themes Work
PPTX
Introduction to CSS
Wordpress theme development
WordPress Theme Development
planejamento HTM5 e CSS3
CSS Introduction
Css ppt
How WordPress Themes Work
Introduction to CSS

What's hot (20)

PPTX
Technical Seo
PPT
cascading style sheet ppt
PDF
CSS Dasar #4 : Font Styling
PPTX
Hushang Gaikwad
PPTX
Css Basics
PPTX
html tutorial
PPTX
Basic seo
PPT
Css lecture notes
PDF
CSS media types
PPT
Css Specificity
PPTX
HTML Semantic Elements
PDF
CSS Dasar #9 : Inheritance
PPSX
Introduction to css
PDF
CSS Mastigado
PDF
HTML and CSS crash course!
PDF
Intro to html, css & sass
PPTX
Basic WordPress Workshop Presentation
PDF
CSS Dasar #2 : Anatomy CSS
PDF
CSS Dasar #1 : Intro
PPTX
Identificacion del lenguaje css
Technical Seo
cascading style sheet ppt
CSS Dasar #4 : Font Styling
Hushang Gaikwad
Css Basics
html tutorial
Basic seo
Css lecture notes
CSS media types
Css Specificity
HTML Semantic Elements
CSS Dasar #9 : Inheritance
Introduction to css
CSS Mastigado
HTML and CSS crash course!
Intro to html, css & sass
Basic WordPress Workshop Presentation
CSS Dasar #2 : Anatomy CSS
CSS Dasar #1 : Intro
Identificacion del lenguaje css
Ad

Similar to WordPress Theme Development (20)

PPTX
WordPress Theme Development by Sharif Mohammad Eunus
PPTX
Theme development essentials columbus oh word camp 2012
PDF
Intro to WordPress theme development
PDF
WordPress Theming 101
PPT
Wordcamp 2010 Themes for Beginners
PPT
Wordcamp 2010 Themes for Beginners
PPT
Wordcamp 2010 Themes for Beginners
PPT
WordPress Theme Design - Rich Media Institute Workshop
PDF
Arizona WP - Building a WordPress Theme
PPTX
WordPress theme template tour
PDF
Wordcamp 2010
PPTX
Sagar presentation
PDF
Adopt or hack - how to hack a theme in a Drupal way
PPTX
Word press bootcamp By Sourcescript Innovations and Mentors Dojo
PPTX
Starting WordPress Theme Review
PDF
WordPress Theme Workshop: Part 4
PPTX
Overview on WordPress theme file structure and working functionality
PPTX
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
PDF
Builing a WordPress Theme
PPTX
Building themesfromscratchwithframeworks
WordPress Theme Development by Sharif Mohammad Eunus
Theme development essentials columbus oh word camp 2012
Intro to WordPress theme development
WordPress Theming 101
Wordcamp 2010 Themes for Beginners
Wordcamp 2010 Themes for Beginners
Wordcamp 2010 Themes for Beginners
WordPress Theme Design - Rich Media Institute Workshop
Arizona WP - Building a WordPress Theme
WordPress theme template tour
Wordcamp 2010
Sagar presentation
Adopt or hack - how to hack a theme in a Drupal way
Word press bootcamp By Sourcescript Innovations and Mentors Dojo
Starting WordPress Theme Review
WordPress Theme Workshop: Part 4
Overview on WordPress theme file structure and working functionality
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
Builing a WordPress Theme
Building themesfromscratchwithframeworks
Ad

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PPTX
master seminar digital applications in india
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Business Ethics Teaching Materials for college
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
01-Introduction-to-Information-Management.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Pre independence Education in Inndia.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
Pharma ospi slides which help in ospi learning
master seminar digital applications in india
Microbial diseases, their pathogenesis and prophylaxis
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Anesthesia in Laparoscopic Surgery in India
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Business Ethics Teaching Materials for college
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
01-Introduction-to-Information-Management.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Pre independence Education in Inndia.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Week 4 Term 3 Study Techniques revisited.pptx

WordPress Theme Development

  • 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.
  • 3. Theme Makes from  HTML  PHP  CSS  IMAGES
  • 8. Way of develop themes 1)From Scratch 2) Customizing themes 3) Build Child Theme
  • 9. Minimum files require  style.css  index.php 1) From Scratch
  • 10. Basic Layout of website 1)From Scratch
  • 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
  • 12. Define Theme Description D Define theme description on style.css /* Theme Name: Wordpress Sanothimi URI: http://wordpress.org/ Description: Clean Responsive thene. Author: Bijaya Oli Author URI: facebook.com/bijaya.oli Version: 1.0 Tags: black, blue, white, two-columns, License: License URI: General comments (optional). */ 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
  • 15. Custom Page Templates Method of define custom template <?php /* Template Name: Product Page */ ?> 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
  • 17. Customizing Themes  Customize existing themes  Customize style, layout, functions etc.  Add page templates  Add custom post type, widgets
  • 18. Starter Themes Develop theme using starter themes. (popular starter theme) 1) Underscores http://underscores.me/ 2) Bones http://themble.com/bones/
  • 19. Example of Starter theme (underscore)
  • 20. Example of Starter theme (bones)
  • 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);
  • 23. Screen shot of child theme At backend
  • 25. How child theme works?
  • 27. Thank You Contact me : bj.aspire@gmail.com facebook.com/bijaya.oli