SlideShare uma empresa Scribd logo
1 de 60
W O R D C A M P M U M B A I , 2 0 1 6 | B Y: S A K I N S H R E S T H A
Sakin Shrestha
http://sakinshrestha.com
@sakinshrestha
WordPress Nepal
Wo rd P re s s 

T h e m e D e v e l o p m e n t 

E x p e r i e n c e
Wo rd P re s s 

T h e m e R e v i e w 

E x p e r i e n c e
W h a t m a k e s 

a 

Wo rd P re s s T h e m e ?
H T M L 

C S S 

P H P 

J a v a S c r i p t 

A s s e t s
L e t ’s l o o k a t s o m e 



Aw e s o m e Wo rd P re s s T h e m e s
H o w d o e s a 

Wo rd P re s s T h e m e w o r k ?
Wo rd P re s s T h e m e F i l e s
• header.php, sidebar.php, functions.php, footer.php 

• Loop files like, singular.php, index.php, archive.php,
category.php & more

• Check out Template Hierarchy:

https://developer.wordpress.org/themes/basics/template-
hierarchy/

https://yoast.com/wordpress-theme-anatomy/
• Needs at least 2 files: 

index.php and style.css
A p p ro a c h e s 

To 

Wo rd P re s s T h e m e D e v e l o p m e n t
1 . S t a r t i n g f ro m S c r a t c h
A p p ro a c h e s t o Wo rd P re s s T h e m e D e v e l o p m e n t
S t a r t i n g f ro m S c r a t c h
• Time consuming

• Difficult approach
U s e f u l 

S t a r t i n g f ro m S c r a t c h
• Preferred by Freelancers and Web Agencies

• Not recommended for theme shops

• Why reinvent the wheel?
1 0 9 M I L L I O N PA G E
V I E W S P E R M O N T H
S TAT S
2 . E d i t i n g a n E x i s t i n g
T h e m e
A p p ro a c h e s t o Wo rd P re s s T h e m e D e v e l o p m e n t
U s e f u l 

E d i t i n g E x i s t i n g T h e m e
• Preferred by Freelancers and Newbies

• Fast Turnaround

• Fast Editing

• Learn standard codes

• Only need time to search for the best theme
Update Available
Oh no!!!! What happened?

all the edits are gone
• C h a n g e t e x t d o m a i n i n s t y l e . c s s 

• A d d u n i q u e f o l d e r n a m e / t h e m e
s l u g t o m a t c h w i t h t e x t d o m a i n
B e c a re f u l w h i l e e d i t i n g a n
e x i s t i n g t h e m e
3 . P a re n t a n d C h i l d
A p p ro a c h e s t o Wo rd P re s s T h e m e D e v e l o p m e n t
P a re n t a n d C h i l d T h e m e s
• Similar to Editing existing theme but safer

• Take any child theme ready theme

• Child functions and files will overwrite Parent

• Relatively easy, just create style.css and screenshot file

for more create functions.php files

• Refer:

https://codex.wordpress.org/Child_Themes

https://catchthemes.com/blog/create-child-theme-
wordpress/
/*

Theme Name: CatchBoxEleven

Theme URI: http://example.com

Author: You

Author URI: http://example.com

Description: This is an example of Child theme is Catch Box Theme was build as
child theme of Twenty Eleven theme.

Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-
sidebar, fixed-layout, responsive-layout

Text Domain: catchboxeleven

Template: twentyeleven

*/

/* =Loading Parent Theme CSS

-------------------------------------------------------------- */

@import url("../twentyeleven/style.css");

/* =Child Theme Custom CSS

-------------------------------------------------------------- */
C a t c h B o x E l e v e n S t y l e . c s s 

C h i l d t h e m e o f Tw e n t y E l e v e n
/*

Theme Name: CatchBoxEleven

Theme URI: http://catchthemes.com/themes/catchboxeleven

Author: Catch Themes

Author URI: http://catchthemes.com

Description: This is an example of Child theme is Catch Box Theme was build
as child theme of Twenty Eleven theme. 

Version: 1.0

License: GNU General Public License v2 or later

License URI: http://www.gnu.org/licenses/gpl-2.0.html

Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar,
right-sidebar, fixed-layout, responsive-layout

Text Domain: catchboxeleven

Template: twentyeleven

*/

/* =Child Theme Custom CSS

-------------------------------------------------------------- */
C a t c h B o x E l e v e n S t y l e . c s s 

C h i l d t h e m e o f Tw e n t y E l e v e n
<?php

/**

* Child Theme functions and definitions

*

*/



/**

* Loading Parent theme stylesheet

*

*/

function catchboxeleven_enqueue_styles() {

wp_enqueue_style( 'catchboxeleven-parent-style',
get_template_directory_uri() . '/style.css' );

}

add_action( 'wp_enqueue_scripts', 'catchboxeleven_enqueue_styles' );
C a t c h B o x E l e v e n f u n c t i o n s . p h p 

C h i l d t h e m e o f Tw e n t y E l e v e n
U s e f u l 

C h i l d T h e m e
• Your design/functions are similar to the parent theme

• Secured and fast development

• Always remember to select the best Parent
4 . T h e m e F r a m e w o r k
A P P R O A C H E S
F r a m e w o r k T h e m e s
• Similar to Parent and Child theme

• It’s more advanced and difficult to learn

• It’s a code library

• Can-do attitude theme
<?php

/**

* Genesis Framework.

*

* WARNING: This file is part of the core Genesis Framework. DO
NOT edit this file under any circumstances.

* Please do all modifications in the form of a child theme.

*

* @package GenesisTemplates

* @author StudioPress

* @license GPL-2.0+

* @link http://my.studiopress.com/themes/genesis/

*/

//* Initialize Genesis

genesis();
L e t ’s l o o k a t G e n e s i s 

i n d e x . p h p
<?php

/**

* Genesis Framework.

*

* WARNING: This file is part of the core Genesis Framework. DO NOT
edit this file under any circumstances.

* Please do all modifications in the form of a child theme.

*

* @package GenesisTemplates

* @author StudioPress

* @license GPL-2.0+

* @link http://my.studiopress.com/themes/genesis/

*/

/* This file handles pages, but only exists for the sake of child theme
forward compatibility.

genesis();
L e t ’s l o o k a t G e n e s i s 

p a g e . p h p
<?php

/**

* Genesis Framework.

*

* WARNING: This file is part of the core Genesis Framework. DO NOT
edit this file under any circumstances.

* Please do all modifications in the form of a child theme.

*

* @package GenesisTemplates

* @author StudioPress

* @license GPL-2.0+

* @link http://my.studiopress.com/themes/genesis/

*/

/* This file handles single entries, but only exists for the sake of child
theme forward compatibility.

genesis();
L e t ’s l o o k a t G e n e s i s 

s i n g l e . p h p
U s e f u l 

F r a m e w o r k T h e m e
• Preferred by experienced developers and a few theme
shops

• Might have issues, if Framework theme releases major
changes
5 . S t a r t e r T h e m e
A P P R O A C H E S
S t a r t e r T h e m e s
• It’s an independent theme and not a Parent theme

• Toolbox for theme development

• Saves time "A 1000-Hour Head Start"

• Ensures coding standards and best practices

• Easy to learn
U s e f u l 

S t a r t e r T h e m e
• For everyone

• used and recommended by lot of theme shops,
including us

• Starter themes are evolving and it’s difficult to keep
track
C o m p o n e n t s
• It’s a booster starter theme

• Forked from Underscores
C o m p o n e n t s
• library of shareable, reusable patterns
for WordPress themes
C o m p o n e n t s
• Five different theme types 

1.The Classic Blog

2.The Modern Blog

3.Portfolio

4.Magazine

5.Business
S e l e c t t h e A p p ro a c h
w h i c h s u i t s y o u r n e e d
S TA RT T O D AY
R e f e re n c e s
1. Theme Development: 

https://codex.wordpress.org/Theme_Development

http://themeshaper.com/

http://catchthemes.com

https://www.smashingmagazine.com/2013/03/a-guide-to-wordpress-theme-options/

http://build.codepoet.com/2013/01/31/theme-approaches/

2. Template Hierarchy 

https://developer.wordpress.org/themes/basics/template-hierarchy/

3. Prefix all the things

http://themereview.co/prefix-all-the-things/

4. Starter Themes:

http://www.hongkiat.com/blog/starter-wordpress-themes/

http://underscores.me/

https://github.com/Automattic/_s

http://components.underscores.me/

http://themble.com/bones/

https://github.com/eddiemachado/bones

5. Framework Themes

http://my.studiopress.com/themes/genesis/

http://themehybrid.com/hybrid-core

https://catchthemes.com/themes/catch-base-pro/

6. Theme using REST API

http://wordpress.tv/2015/12/09/rachel-baker-build-a-theme-with-the-rest-api/

http://jacklenox.com/2015/03/30/building-themes-with-the-wp-rest-api-wordcamp-london-march-2015/
Thank You
http://sakinshrestha.com
@sakinshrestha
info@sakinshrestha.com

Mais conteúdo relacionado

Mais procurados

Week 12 - Search Engine Optimization
Week 12 -  Search Engine OptimizationWeek 12 -  Search Engine Optimization
Week 12 - Search Engine Optimization
henri_makembe
 
Week 11 - Hosting and Migration
Week 11 - Hosting and MigrationWeek 11 - Hosting and Migration
Week 11 - Hosting and Migration
henri_makembe
 
Week 7 introduction to theme development
Week 7   introduction to theme developmentWeek 7   introduction to theme development
Week 7 introduction to theme development
henri_makembe
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
DaisyOlsen
 
Step by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginStep by step guide for creating wordpress plugin
Step by step guide for creating wordpress plugin
Mainak Goswami
 
Plugins at WordCamp Phoenix
Plugins at WordCamp PhoenixPlugins at WordCamp Phoenix
Plugins at WordCamp Phoenix
Andrew Ryno
 

Mais procurados (20)

Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaReno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
 
Week 12 - Search Engine Optimization
Week 12 -  Search Engine OptimizationWeek 12 -  Search Engine Optimization
Week 12 - Search Engine Optimization
 
Week 11 - Hosting and Migration
Week 11 - Hosting and MigrationWeek 11 - Hosting and Migration
Week 11 - Hosting and Migration
 
Introduction to WordPress Plugin Development, WordCamp North Canton, 2015
Introduction to WordPress Plugin Development, WordCamp North Canton, 2015Introduction to WordPress Plugin Development, WordCamp North Canton, 2015
Introduction to WordPress Plugin Development, WordCamp North Canton, 2015
 
Week 7 introduction to theme development
Week 7   introduction to theme developmentWeek 7   introduction to theme development
Week 7 introduction to theme development
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin Development
 
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
 
Meetup child-themes
Meetup child-themesMeetup child-themes
Meetup child-themes
 
Step by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginStep by step guide for creating wordpress plugin
Step by step guide for creating wordpress plugin
 
WordPress Standardized Loop API
WordPress Standardized Loop APIWordPress Standardized Loop API
WordPress Standardized Loop API
 
Plugins at WordCamp Phoenix
Plugins at WordCamp PhoenixPlugins at WordCamp Phoenix
Plugins at WordCamp Phoenix
 
The Future Of WordPress Presentation
The Future Of WordPress PresentationThe Future Of WordPress Presentation
The Future Of WordPress Presentation
 
WordPress Theme Development for Designers
WordPress Theme Development for DesignersWordPress Theme Development for Designers
WordPress Theme Development for Designers
 
Wordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short TutorialWordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short Tutorial
 
DrupalEasy: Intro to Theme Development
DrupalEasy: Intro to Theme DevelopmentDrupalEasy: Intro to Theme Development
DrupalEasy: Intro to Theme Development
 
WordPress Plugin Development For Beginners
WordPress Plugin Development For BeginnersWordPress Plugin Development For Beginners
WordPress Plugin Development For Beginners
 
WordPress plugin development
WordPress plugin developmentWordPress plugin development
WordPress plugin development
 
Secure All The Things!
Secure All The Things!Secure All The Things!
Secure All The Things!
 

Destaque

Theme In Literature
Theme In LiteratureTheme In Literature
Theme In Literature
Mark Dixon
 
The Natural Approach
The Natural ApproachThe Natural Approach
The Natural Approach
Patrmartin
 
Finding themes in literature ppt
Finding themes in literature pptFinding themes in literature ppt
Finding themes in literature ppt
Thalia Longoria
 

Destaque (9)

Command Line Awesome, WordCamp Grand Rapids 2014
Command Line Awesome, WordCamp Grand Rapids 2014Command Line Awesome, WordCamp Grand Rapids 2014
Command Line Awesome, WordCamp Grand Rapids 2014
 
Handling clients The human way!
Handling clients The human way!Handling clients The human way!
Handling clients The human way!
 
Intro to Literature: Theme Presentation
Intro to Literature: Theme PresentationIntro to Literature: Theme Presentation
Intro to Literature: Theme Presentation
 
Literary Theme Review
Literary Theme ReviewLiterary Theme Review
Literary Theme Review
 
Theme In Literature
Theme In LiteratureTheme In Literature
Theme In Literature
 
The Natural Approach
The Natural ApproachThe Natural Approach
The Natural Approach
 
Approach, method and Technique in Language Learning and teaching
Approach, method and Technique in Language Learning and teachingApproach, method and Technique in Language Learning and teaching
Approach, method and Technique in Language Learning and teaching
 
Finding themes in literature ppt
Finding themes in literature pptFinding themes in literature ppt
Finding themes in literature ppt
 
Design in Tech Report 2017
Design in Tech Report 2017Design in Tech Report 2017
Design in Tech Report 2017
 

Semelhante a Approaches To WordPress Theme Development

Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
sos informatique
 
Theming for BuddyPress
Theming for BuddyPressTheming for BuddyPress
Theming for BuddyPress
boonebgorges
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
openchamp
 

Semelhante a Approaches To WordPress Theme Development (20)

Developing client themes for theme review for WordCamp Edmonton
Developing client themes for theme review for WordCamp EdmontonDeveloping client themes for theme review for WordCamp Edmonton
Developing client themes for theme review for WordCamp Edmonton
 
Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?
 
Child Theme Frameworks
Child Theme FrameworksChild Theme Frameworks
Child Theme Frameworks
 
There's No Crying In Wordpress! (an intro to WP)
There's No Crying In Wordpress! (an intro to WP)There's No Crying In Wordpress! (an intro to WP)
There's No Crying In Wordpress! (an intro to WP)
 
Rockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child ThemesRockford WordPress Meetup - Child Themes
Rockford WordPress Meetup - Child Themes
 
WordPress and Child Themes
WordPress and Child ThemesWordPress and Child Themes
WordPress and Child Themes
 
Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.Keeping Your Themes and Plugins Organized.
Keeping Your Themes and Plugins Organized.
 
Rapid WordPress theme development
Rapid WordPress theme developmentRapid WordPress theme development
Rapid WordPress theme development
 
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
 
Theming for BuddyPress
Theming for BuddyPressTheming for BuddyPress
Theming for BuddyPress
 
Intro To WordPress Themes
Intro To WordPress ThemesIntro To WordPress Themes
Intro To WordPress Themes
 
Introduction to WordPress Hooks 2016
Introduction to WordPress Hooks 2016Introduction to WordPress Hooks 2016
Introduction to WordPress Hooks 2016
 
Haltech WordPress102
Haltech  WordPress102Haltech  WordPress102
Haltech WordPress102
 
WordPress for the 99%
WordPress for the 99%WordPress for the 99%
WordPress for the 99%
 
WordPress: A Designer's CMS
WordPress: A Designer's CMSWordPress: A Designer's CMS
WordPress: A Designer's CMS
 
Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 
2015 rubyconf - 百大媒體網站從 Wordpress 到 Rails 的大小事
2015 rubyconf - 百大媒體網站從 Wordpress 到 Rails 的大小事2015 rubyconf - 百大媒體網站從 Wordpress 到 Rails 的大小事
2015 rubyconf - 百大媒體網站從 Wordpress 到 Rails 的大小事
 
Alternative Approach to Plone Theming
Alternative Approach to Plone ThemingAlternative Approach to Plone Theming
Alternative Approach to Plone Theming
 
What are child themes, and why use them
What are child themes, and why use themWhat are child themes, and why use them
What are child themes, and why use them
 

Mais de Catch Themes

WordPress Uses & Scope
WordPress Uses & ScopeWordPress Uses & Scope
WordPress Uses & Scope
Catch Themes
 

Mais de Catch Themes (11)

Building WordPress Theme Business: My Story
Building WordPress Theme Business: My StoryBuilding WordPress Theme Business: My Story
Building WordPress Theme Business: My Story
 
Speaking at WordCamps? What not to do…
Speaking at WordCamps? What not to do…Speaking at WordCamps? What not to do…
Speaking at WordCamps? What not to do…
 
Opening Remarks - WordCamp Kathmandu, 2016
Opening Remarks - WordCamp Kathmandu, 2016 Opening Remarks - WordCamp Kathmandu, 2016
Opening Remarks - WordCamp Kathmandu, 2016
 
Breaking social barriers and creating opportunities
Breaking social barriers and creating opportunitiesBreaking social barriers and creating opportunities
Breaking social barriers and creating opportunities
 
World of Creative Designer & Front-end-Developer
World of Creative Designer & Front-end-DeveloperWorld of Creative Designer & Front-end-Developer
World of Creative Designer & Front-end-Developer
 
Contributing to WordPress Theme Review at WordPress.org
Contributing to WordPress Theme Review at WordPress.orgContributing to WordPress Theme Review at WordPress.org
Contributing to WordPress Theme Review at WordPress.org
 
How to get your theme on Top 15 Popular Themes at WordPress.org
How to get your theme on Top 15 Popular Themes at WordPress.orgHow to get your theme on Top 15 Popular Themes at WordPress.org
How to get your theme on Top 15 Popular Themes at WordPress.org
 
Starting WordPress Theme Review
Starting WordPress Theme ReviewStarting WordPress Theme Review
Starting WordPress Theme Review
 
Building Secure WordPress Sites
Building Secure WordPress Sites Building Secure WordPress Sites
Building Secure WordPress Sites
 
WordPress Uses & Scope
WordPress Uses & ScopeWordPress Uses & Scope
WordPress Uses & Scope
 
WordPress Security Tips
WordPress Security TipsWordPress Security Tips
WordPress Security Tips
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Approaches To WordPress Theme Development

  • 1. W O R D C A M P M U M B A I , 2 0 1 6 | B Y: S A K I N S H R E S T H A
  • 3. Wo rd P re s s T h e m e D e v e l o p m e n t E x p e r i e n c e
  • 4.
  • 5. Wo rd P re s s T h e m e R e v i e w E x p e r i e n c e
  • 6.
  • 7. W h a t m a k e s a Wo rd P re s s T h e m e ?
  • 8. H T M L C S S P H P J a v a S c r i p t A s s e t s
  • 9. L e t ’s l o o k a t s o m e 
 
 Aw e s o m e Wo rd P re s s T h e m e s
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. H o w d o e s a Wo rd P re s s T h e m e w o r k ?
  • 17. Wo rd P re s s T h e m e F i l e s • header.php, sidebar.php, functions.php, footer.php • Loop files like, singular.php, index.php, archive.php, category.php & more • Check out Template Hierarchy:
 https://developer.wordpress.org/themes/basics/template- hierarchy/
 https://yoast.com/wordpress-theme-anatomy/ • Needs at least 2 files: 
 index.php and style.css
  • 18. A p p ro a c h e s To Wo rd P re s s T h e m e D e v e l o p m e n t
  • 19. 1 . S t a r t i n g f ro m S c r a t c h A p p ro a c h e s t o Wo rd P re s s T h e m e D e v e l o p m e n t
  • 20.
  • 21. S t a r t i n g f ro m S c r a t c h • Time consuming • Difficult approach
  • 22. U s e f u l S t a r t i n g f ro m S c r a t c h • Preferred by Freelancers and Web Agencies • Not recommended for theme shops • Why reinvent the wheel?
  • 23.
  • 24. 1 0 9 M I L L I O N PA G E V I E W S P E R M O N T H S TAT S
  • 25. 2 . E d i t i n g a n E x i s t i n g T h e m e A p p ro a c h e s t o Wo rd P re s s T h e m e D e v e l o p m e n t
  • 26.
  • 27.
  • 28. U s e f u l E d i t i n g E x i s t i n g T h e m e • Preferred by Freelancers and Newbies • Fast Turnaround • Fast Editing • Learn standard codes • Only need time to search for the best theme
  • 30. Oh no!!!! What happened? all the edits are gone
  • 31. • C h a n g e t e x t d o m a i n i n s t y l e . c s s • A d d u n i q u e f o l d e r n a m e / t h e m e s l u g t o m a t c h w i t h t e x t d o m a i n B e c a re f u l w h i l e e d i t i n g a n e x i s t i n g t h e m e
  • 32. 3 . P a re n t a n d C h i l d A p p ro a c h e s t o Wo rd P re s s T h e m e D e v e l o p m e n t
  • 33. P a re n t a n d C h i l d T h e m e s • Similar to Editing existing theme but safer • Take any child theme ready theme • Child functions and files will overwrite Parent • Relatively easy, just create style.css and screenshot file
 for more create functions.php files • Refer:
 https://codex.wordpress.org/Child_Themes
 https://catchthemes.com/blog/create-child-theme- wordpress/
  • 34. /*
 Theme Name: CatchBoxEleven
 Theme URI: http://example.com
 Author: You
 Author URI: http://example.com
 Description: This is an example of Child theme is Catch Box Theme was build as child theme of Twenty Eleven theme.
 Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right- sidebar, fixed-layout, responsive-layout
 Text Domain: catchboxeleven
 Template: twentyeleven
 */ /* =Loading Parent Theme CSS
 -------------------------------------------------------------- */
 @import url("../twentyeleven/style.css"); /* =Child Theme Custom CSS
 -------------------------------------------------------------- */ C a t c h B o x E l e v e n S t y l e . c s s C h i l d t h e m e o f Tw e n t y E l e v e n
  • 35. /*
 Theme Name: CatchBoxEleven
 Theme URI: http://catchthemes.com/themes/catchboxeleven
 Author: Catch Themes
 Author URI: http://catchthemes.com
 Description: This is an example of Child theme is Catch Box Theme was build as child theme of Twenty Eleven theme. 
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout
 Text Domain: catchboxeleven
 Template: twentyeleven
 */ /* =Child Theme Custom CSS
 -------------------------------------------------------------- */ C a t c h B o x E l e v e n S t y l e . c s s C h i l d t h e m e o f Tw e n t y E l e v e n
  • 36. <?php
 /**
 * Child Theme functions and definitions
 *
 */
 
 /**
 * Loading Parent theme stylesheet
 *
 */
 function catchboxeleven_enqueue_styles() {
 wp_enqueue_style( 'catchboxeleven-parent-style', get_template_directory_uri() . '/style.css' );
 }
 add_action( 'wp_enqueue_scripts', 'catchboxeleven_enqueue_styles' ); C a t c h B o x E l e v e n f u n c t i o n s . p h p C h i l d t h e m e o f Tw e n t y E l e v e n
  • 37.
  • 38. U s e f u l C h i l d T h e m e • Your design/functions are similar to the parent theme • Secured and fast development • Always remember to select the best Parent
  • 39. 4 . T h e m e F r a m e w o r k A P P R O A C H E S
  • 40. F r a m e w o r k T h e m e s • Similar to Parent and Child theme • It’s more advanced and difficult to learn • It’s a code library • Can-do attitude theme
  • 41.
  • 42.
  • 43. <?php
 /**
 * Genesis Framework.
 *
 * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
 * Please do all modifications in the form of a child theme.
 *
 * @package GenesisTemplates
 * @author StudioPress
 * @license GPL-2.0+
 * @link http://my.studiopress.com/themes/genesis/
 */ //* Initialize Genesis
 genesis(); L e t ’s l o o k a t G e n e s i s i n d e x . p h p
  • 44. <?php
 /**
 * Genesis Framework.
 *
 * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
 * Please do all modifications in the form of a child theme.
 *
 * @package GenesisTemplates
 * @author StudioPress
 * @license GPL-2.0+
 * @link http://my.studiopress.com/themes/genesis/
 */ /* This file handles pages, but only exists for the sake of child theme forward compatibility.
 genesis(); L e t ’s l o o k a t G e n e s i s p a g e . p h p
  • 45. <?php
 /**
 * Genesis Framework.
 *
 * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
 * Please do all modifications in the form of a child theme.
 *
 * @package GenesisTemplates
 * @author StudioPress
 * @license GPL-2.0+
 * @link http://my.studiopress.com/themes/genesis/
 */ /* This file handles single entries, but only exists for the sake of child theme forward compatibility.
 genesis(); L e t ’s l o o k a t G e n e s i s s i n g l e . p h p
  • 46.
  • 47.
  • 48. U s e f u l F r a m e w o r k T h e m e • Preferred by experienced developers and a few theme shops • Might have issues, if Framework theme releases major changes
  • 49. 5 . S t a r t e r T h e m e A P P R O A C H E S
  • 50. S t a r t e r T h e m e s • It’s an independent theme and not a Parent theme • Toolbox for theme development • Saves time "A 1000-Hour Head Start" • Ensures coding standards and best practices • Easy to learn
  • 51. U s e f u l S t a r t e r T h e m e • For everyone • used and recommended by lot of theme shops, including us • Starter themes are evolving and it’s difficult to keep track
  • 52.
  • 53.
  • 54.
  • 55. C o m p o n e n t s • It’s a booster starter theme • Forked from Underscores
  • 56. C o m p o n e n t s • library of shareable, reusable patterns for WordPress themes
  • 57. C o m p o n e n t s • Five different theme types 1.The Classic Blog 2.The Modern Blog 3.Portfolio 4.Magazine 5.Business
  • 58. S e l e c t t h e A p p ro a c h w h i c h s u i t s y o u r n e e d S TA RT T O D AY
  • 59. R e f e re n c e s 1. Theme Development: https://codex.wordpress.org/Theme_Development http://themeshaper.com/ http://catchthemes.com https://www.smashingmagazine.com/2013/03/a-guide-to-wordpress-theme-options/ http://build.codepoet.com/2013/01/31/theme-approaches/ 2. Template Hierarchy https://developer.wordpress.org/themes/basics/template-hierarchy/ 3. Prefix all the things http://themereview.co/prefix-all-the-things/ 4. Starter Themes: http://www.hongkiat.com/blog/starter-wordpress-themes/ http://underscores.me/ https://github.com/Automattic/_s http://components.underscores.me/ http://themble.com/bones/ https://github.com/eddiemachado/bones 5. Framework Themes http://my.studiopress.com/themes/genesis/ http://themehybrid.com/hybrid-core https://catchthemes.com/themes/catch-base-pro/ 6. Theme using REST API http://wordpress.tv/2015/12/09/rachel-baker-build-a-theme-with-the-rest-api/ http://jacklenox.com/2015/03/30/building-themes-with-the-wp-rest-api-wordcamp-london-march-2015/