SlideShare una empresa de Scribd logo
1 de 30
Descargar para leer sin conexión
THEME DEVELOPMENT
AND CUSTOMIZATION
     By Aniket Pant / @aniket_pant
PREVIEW
1.   Basic Concepts
2.   Stylesheets
3.   Functions
4.   Templates
5.   Child Themes
6.   Bones
WHAT IS WORDPRESS?
CONTENT
MANAGEMENT
  SYSTEM
WHAT IS A THEME?
           As per the codex —
  “ Fundamentally, the WordPress Theme
 system is a way to “skin” your weblog. Yet,
 it is more than just a “skin.” Skinning your
site implies that only the design is changed.
   WordPress Themes can provide much
        more control over the look and
     presentation of the material on your
                  website. ”
“ In Web design, we should all be
  craftsmen or craftswomen. We should
break the frame and explore the unknown.
                     ”
        By Simon Collison at #frontend2011
WHAT MAKES A THEME?
    Theme Stylesheets
    Function Files
    Template Files
THEME STYLESHEETS
     This is the theme information of Bones
/*********************************
 *********************************

TeeNm:Bns
 hm ae oe
TeeUI ht:/w.hml.o/oe
 hm R: tp/wwtebecmbns
Dsrpin A iceil sml satrteefrdvlpr.
 ecito: n nrdby ipe tre hm o eeoes
Ato:EdeMcao
 uhr di ahd
Ato UI ht:/w.hml.o/oe/
 uhr R: tp/wwtebecmbns
Vrin 10
 eso: .7
Tg:hm5 faeok cs,dvlpet
 as tl, rmwr, s3 eeomn

Lcne GLo waee
 ies: P r htvr
LcneUI ?
 ies R:

AlDfutSye aei lbaycsdfutcs
 l eal tls r n irr/s/eal.s
Ircmednteiigtoeflsadmkn al
  eomn o dtn hs ie n aig l
cagshr.Ta wyi smtigge ar,yu
 hne ee ht a f oehn os wy o
cnesl rvr bc t teoiia,btta'
 a aiy eet ak o h rgnl u hts
ttlyu t yu
 oal p o o.

HpyDvlpn!
 ap eeoig
FUNCTIONS FILE
    You can put in your custom PHP codes in this file to
         modify some core functions of your theme.
It is often used to insert 2 sidebars, change the number of
 characters in the excerpt, add custom admin panels or a
                      new type of post.
“Put in your entire hand coded functions, tailor made for your
                            theme.”
EXAMPLE #1
fnto bnsecrt){
 ucin oe_xep(
   teecrt)
   h_xep(;
   eh 'b /'
   co <r >;
   eh 'p< he="gtpraik)">Ra Mr../>/>;
   co <>a rf'.e_emln(.' ed oe.<a<p'
}
EXAMPLE #2
fnto bnsrgse_ieas){
 ucin oe_eitrsdbr(
   rgse_iea(ra(
   eitrsdbrary
      'd = 'iea1,
       i' > sdbr'
      'ae = 'iea 1,
       nm' > Sdbr '
      'ecito'= 'h frt(rmr)sdbr'
       dsrpin > Te is piay iea.,
      'eoewde'= 'dvi=%$"cas"igt%$"'
       bfr_igt > <i d"1s ls=wde 2s>,
      'fe_igt = '/i>,
       atrwde' > <dv'
      'eoette = 'h cas"igtil"'
       bfr_il' > <4 ls=wdette>,
      'fe_il'= '/4'
       atrtte > <h>,
   );
   )
}
TEMPLATE FILES
style.css    index.php      comments.php   home.php
single.php   single-.php    search.php     attachment.php
image.php    404.php        page.php       category.php
tag.php      taxonomy.php   author.php     date.php
THE HEADER
<dcyehm>
 !otp tl
<ed
 ha>
   <eacast"t-"
   mt hre=uf8>
   <il>?h w_il('' tu,'ih') boif('ae ) ?<tte
   tte<pp ptte -, re rgt ; lgno nm' ; >/il>

  <ikrl"hrctio"he=/aio.c"
  ln e=sotu cn rf"fvcnio>
  <ikrl"igak he="
  ln e=pnbc" rf">

  <ppw_ed) ?
  ?h pha(; >

   <ikrl"tlset he="
   ln e=syehe" rf">
<ha>
 /ed

<oy<ppbd_ls(;?>
 bd ?h oycas) >
    <i i=cnanr>
     dv d"otie"
       <edrrl=bne"
        hae oe"anr>
          ..
           .
       <hae>
        /edr
THE CONTENT
<ppgthae(;?
 ?h e_edr) >
      <i i=cnet cas"lafx>
       dv d"otn" ls=ceri"
      <i i=mi"cas"o70lf ceri"rl=mi"
       dv d"an ls=cl0 et lafx oe"an>
         <ppi (aepss) :wie(aepss) :teps(;?
          ?h f hv_ot()    hl hv_ot()  h_ot) >
         <ril i=ps->
          atce d"ot"
            <edr
             hae>
               <1cas"2>?h tette) ?<h>
               h ls=h"<pp h_il(; >/1
            <hae>
             /edr
            <eto cas"otcnetceri"
             scin ls=ps_otn lafx>
               Ra mr o ".h_il(' ',fle."»,"oetee
               ed oe n 'tette', ' as)' ' bnshm
") ?
 ); >
            <scin
             /eto>
            <otr
             foe>
                 ..
                  .
            <foe>
             /otr

         <ppcmet_epae) ?
          ?h omnstmlt(; >
         <ppedhl;?
          ?h nwie >
         <ppes :?
          ?h le   >
         <ril i=ps-o-on"
          atce d"otntfud>
            <edr
            hae>
              <1NtFud/1
               h>o on<h>
            <hae>
            /edr
            <eto cas"otcnet>
            scin ls=ps_otn"
THE MIGHTY LOOP
THE LOOP
              This is what you see.
            It will contain The Loop.
  The Loop is the key to printing all your posts.
               This is how it starts:
<ppi (hv_ot( ):wie(hv_ot( ):teps(;?
 ?h f  aepss)   hl  aepss)   h_ot) >




                And this is the end:
<ppedhl;es:?
 ?h nwie le >

<>?h _(Sry n pssmthdyu ciei.) ?
 p<pp e'or, o ot ace or rtra'; >


<ppedf ?
 ?h ni; >
SINGLE POST TYPE
SINGLE-<POST-TYPE>.PHP
Another important feature in WordPress 3.0 is that you
     can add your own Custom Post Type Boxes.
                   The default list –
    Post, Page, Attachment, Revisions, Nav Menus
REGISTER A POST TYPE
         Add this to your fnto.h
                          ucinpp
rgse_ottp(mve' ary
 eitrps_ye'ois, ra(
   'ae'= 'ois,
    lbl > Mve'
   'ulc = tu,
    pbi' > re
   'hwu'= tu,
    so_i > re
   'aaiiytp'= 'ot,
    cpblt_ye > ps'
   'irrhcl = fle
    heacia' > as,
   'ert'= ary'lg = 'ois)
    rwie > ra(su' > mve',
   'ur_a'= tu,
    qeyvr > re
   'uprs = ary
    spot' > ra(
     'il'
      tte,
     'dtr,
      eio'
     'xep'
      ecrt,
     'rcbcs,
      takak'
     'utmfed'
      cso-ils,
     'omns,
      cmet'
     'eiin'
      rvsos,
     'hmni'
      tubal,
     'uhr,
      ato'
     'aeatiue')
      pg-trbts,
));
“ The content is like water. And design is
   like a flavour sprinkled on content. ”
        By @standardistas at #frontend2011
“ People say Web Design is not coding, I
           call that bullshit.
    We design the web by coding. ”
CHILD THEMES
CHILD THEMES
Derive something from another theme and what you get
                   is a Child Theme.
You can do absolutely anything with a Child Theme, but
 the only difference between a new theme and a child
                     theme is that.
 It would be residing in the parent theme's directory.
BUILD A CHILD THEME
Just make a directory in your parent theme directory.You
                  can name it anything.
   You can put anything in this directory.So, if it's just a
   styling change you wish to make, make a syecs
                                               tl.s
 There are some required information that you need to
        mention in the child theme's CSS like –
              Theme Name & Template.
      You can refer to the Codex regarding this.
WHAT WE HAVE COVERED
The basic concepts of WordPress
Little on Stylesheets
Some snippets on functions
Making Templates
Building Child Themes
My favorite theme bones
“ We are the architects of the Web, and
       this is our playground. ”
WHAT DO I DO?
  Read Smashing Magazine regularly.
       Visit Hacker News daily.
       Read about typography.
Read anything and everything about CSS.
QUESTIONS?
THE END
BY ANIKET PANT / @ANIKET_PANT

Más contenido relacionado

La actualidad más candente

Getting Started With Play Framework
Getting Started With Play FrameworkGetting Started With Play Framework
Getting Started With Play Framework
Treasury user10
 

La actualidad más candente (19)

Hidden treasures of Ruby
Hidden treasures of RubyHidden treasures of Ruby
Hidden treasures of Ruby
 
Flow of events during Media Player creation in Android
Flow of events during Media Player creation in AndroidFlow of events during Media Player creation in Android
Flow of events during Media Player creation in Android
 
Csharp Intsight
Csharp IntsightCsharp Intsight
Csharp Intsight
 
Descobrindo a linguagem Perl
Descobrindo a linguagem PerlDescobrindo a linguagem Perl
Descobrindo a linguagem Perl
 
Php101
Php101Php101
Php101
 
Introdução ao Perl 6
Introdução ao Perl 6Introdução ao Perl 6
Introdução ao Perl 6
 
Perl6 grammars
Perl6 grammarsPerl6 grammars
Perl6 grammars
 
Inc
IncInc
Inc
 
Bringing Characters to Life for Immersive Storytelling - Dioselin Gonzalez
Bringing Characters to Life for Immersive Storytelling - Dioselin GonzalezBringing Characters to Life for Immersive Storytelling - Dioselin Gonzalez
Bringing Characters to Life for Immersive Storytelling - Dioselin Gonzalez
 
Geb for Testing Your Grails Application GR8Conf India 2016
Geb for Testing Your Grails Application  GR8Conf India 2016Geb for Testing Your Grails Application  GR8Conf India 2016
Geb for Testing Your Grails Application GR8Conf India 2016
 
Bringing characters to life for immersive storytelling
Bringing characters to life for immersive storytellingBringing characters to life for immersive storytelling
Bringing characters to life for immersive storytelling
 
モダンAngularJS @ GDG中国2014.12.6
モダンAngularJS @ GDG中国2014.12.6モダンAngularJS @ GDG中国2014.12.6
モダンAngularJS @ GDG中国2014.12.6
 
Top 10 php classic traps
Top 10 php classic trapsTop 10 php classic traps
Top 10 php classic traps
 
The Perl6 Type System
The Perl6 Type SystemThe Perl6 Type System
The Perl6 Type System
 
WordPress in 30 minutes
WordPress in 30 minutesWordPress in 30 minutes
WordPress in 30 minutes
 
Getting Started With Play Framework
Getting Started With Play FrameworkGetting Started With Play Framework
Getting Started With Play Framework
 
Get into the FLOW with Extbase
Get into the FLOW with ExtbaseGet into the FLOW with Extbase
Get into the FLOW with Extbase
 
WordPress 3 and You
WordPress 3 and YouWordPress 3 and You
WordPress 3 and You
 
Top 10 php classic traps php serbia
Top 10 php classic traps php serbiaTop 10 php classic traps php serbia
Top 10 php classic traps php serbia
 

Destacado (6)

Community Engagement FTW
Community Engagement FTW Community Engagement FTW
Community Engagement FTW
 
Metaboxes. Do them right.
Metaboxes. Do them right.Metaboxes. Do them right.
Metaboxes. Do them right.
 
The Power of CSS
The Power of CSSThe Power of CSS
The Power of CSS
 
Ecommerce disruptive trends and new business models
Ecommerce disruptive trends and new business modelsEcommerce disruptive trends and new business models
Ecommerce disruptive trends and new business models
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
 
How to Build a Dynamic Social Media Plan
How to Build a Dynamic Social Media PlanHow to Build a Dynamic Social Media Plan
How to Build a Dynamic Social Media Plan
 

Similar a Theme Development and Customization

Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
Pat Cito
 
The state of PHPUnit
The state of PHPUnitThe state of PHPUnit
The state of PHPUnit
Edorian
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
Mattias Gees
 

Similar a Theme Development and Customization (20)

Representing Material Culture Online: Historic Clothing in Omeka
Representing Material Culture Online: Historic Clothing in OmekaRepresenting Material Culture Online: Historic Clothing in Omeka
Representing Material Culture Online: Historic Clothing in Omeka
 
PhpUnit Best Practices
PhpUnit Best PracticesPhpUnit Best Practices
PhpUnit Best Practices
 
Hardcore HTML
Hardcore HTMLHardcore HTML
Hardcore HTML
 
A Backbone.js Tutorial for the Impatient - Part 1
A Backbone.js Tutorial for the Impatient - Part 1A Backbone.js Tutorial for the Impatient - Part 1
A Backbone.js Tutorial for the Impatient - Part 1
 
Building modern web apps with html5, javascript, and java
Building modern web apps with html5, javascript, and javaBuilding modern web apps with html5, javascript, and java
Building modern web apps with html5, javascript, and java
 
Making the most of 2.2
Making the most of 2.2Making the most of 2.2
Making the most of 2.2
 
Using Phing for Fun and Profit
Using Phing for Fun and ProfitUsing Phing for Fun and Profit
Using Phing for Fun and Profit
 
An Introduction to CSS Preprocessors
An Introduction to CSS PreprocessorsAn Introduction to CSS Preprocessors
An Introduction to CSS Preprocessors
 
Inside a Digital Collection: Historic Clothing in Omeka
Inside a Digital Collection: Historic Clothing in OmekaInside a Digital Collection: Historic Clothing in Omeka
Inside a Digital Collection: Historic Clothing in Omeka
 
Hubot: a look inside our robot friend
Hubot: a look inside our robot friendHubot: a look inside our robot friend
Hubot: a look inside our robot friend
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
Learn Frontend Testing
Learn Frontend TestingLearn Frontend Testing
Learn Frontend Testing
 
Ods Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A TutorialOds Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A Tutorial
 
SecureSocial - Authentication for Play Framework
SecureSocial - Authentication for Play FrameworkSecureSocial - Authentication for Play Framework
SecureSocial - Authentication for Play Framework
 
The state of PHPUnit
The state of PHPUnitThe state of PHPUnit
The state of PHPUnit
 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) Theming
 
basic knowledge abot html
basic knowledge abot htmlbasic knowledge abot html
basic knowledge abot html
 
PHP Basics and Demo HackU
PHP Basics and Demo HackUPHP Basics and Demo HackU
PHP Basics and Demo HackU
 
The State of PHPUnit
The State of PHPUnitThe State of PHPUnit
The State of PHPUnit
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
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
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
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...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
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...
 
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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Theme Development and Customization

  • 1. THEME DEVELOPMENT AND CUSTOMIZATION By Aniket Pant / @aniket_pant
  • 2. PREVIEW 1. Basic Concepts 2. Stylesheets 3. Functions 4. Templates 5. Child Themes 6. Bones
  • 5. WHAT IS A THEME? As per the codex — “ Fundamentally, the WordPress Theme system is a way to “skin” your weblog. Yet, it is more than just a “skin.” Skinning your site implies that only the design is changed. WordPress Themes can provide much more control over the look and presentation of the material on your website. ”
  • 6. “ In Web design, we should all be craftsmen or craftswomen. We should break the frame and explore the unknown. ” By Simon Collison at #frontend2011
  • 7. WHAT MAKES A THEME? Theme Stylesheets Function Files Template Files
  • 8. THEME STYLESHEETS This is the theme information of Bones /********************************* ********************************* TeeNm:Bns hm ae oe TeeUI ht:/w.hml.o/oe hm R: tp/wwtebecmbns Dsrpin A iceil sml satrteefrdvlpr. ecito: n nrdby ipe tre hm o eeoes Ato:EdeMcao uhr di ahd Ato UI ht:/w.hml.o/oe/ uhr R: tp/wwtebecmbns Vrin 10 eso: .7 Tg:hm5 faeok cs,dvlpet as tl, rmwr, s3 eeomn Lcne GLo waee ies: P r htvr LcneUI ? ies R: AlDfutSye aei lbaycsdfutcs l eal tls r n irr/s/eal.s Ircmednteiigtoeflsadmkn al eomn o dtn hs ie n aig l cagshr.Ta wyi smtigge ar,yu hne ee ht a f oehn os wy o cnesl rvr bc t teoiia,btta' a aiy eet ak o h rgnl u hts ttlyu t yu oal p o o. HpyDvlpn! ap eeoig
  • 9. FUNCTIONS FILE You can put in your custom PHP codes in this file to modify some core functions of your theme. It is often used to insert 2 sidebars, change the number of characters in the excerpt, add custom admin panels or a new type of post. “Put in your entire hand coded functions, tailor made for your theme.”
  • 10. EXAMPLE #1 fnto bnsecrt){ ucin oe_xep( teecrt) h_xep(; eh 'b /' co <r >; eh 'p< he="gtpraik)">Ra Mr../>/>; co <>a rf'.e_emln(.' ed oe.<a<p' }
  • 11. EXAMPLE #2 fnto bnsrgse_ieas){ ucin oe_eitrsdbr( rgse_iea(ra( eitrsdbrary 'd = 'iea1, i' > sdbr' 'ae = 'iea 1, nm' > Sdbr ' 'ecito'= 'h frt(rmr)sdbr' dsrpin > Te is piay iea., 'eoewde'= 'dvi=%$"cas"igt%$"' bfr_igt > <i d"1s ls=wde 2s>, 'fe_igt = '/i>, atrwde' > <dv' 'eoette = 'h cas"igtil"' bfr_il' > <4 ls=wdette>, 'fe_il'= '/4' atrtte > <h>, ); ) }
  • 12. TEMPLATE FILES style.css index.php comments.php home.php single.php single-.php search.php attachment.php image.php 404.php page.php category.php tag.php taxonomy.php author.php date.php
  • 13. THE HEADER <dcyehm> !otp tl <ed ha> <eacast"t-" mt hre=uf8> <il>?h w_il('' tu,'ih') boif('ae ) ?<tte tte<pp ptte -, re rgt ; lgno nm' ; >/il> <ikrl"hrctio"he=/aio.c" ln e=sotu cn rf"fvcnio> <ikrl"igak he=" ln e=pnbc" rf"> <ppw_ed) ? ?h pha(; > <ikrl"tlset he=" ln e=syehe" rf"> <ha> /ed <oy<ppbd_ls(;?> bd ?h oycas) > <i i=cnanr> dv d"otie" <edrrl=bne" hae oe"anr> .. . <hae> /edr
  • 14. THE CONTENT <ppgthae(;? ?h e_edr) > <i i=cnet cas"lafx> dv d"otn" ls=ceri" <i i=mi"cas"o70lf ceri"rl=mi" dv d"an ls=cl0 et lafx oe"an> <ppi (aepss) :wie(aepss) :teps(;? ?h f hv_ot() hl hv_ot() h_ot) > <ril i=ps-> atce d"ot" <edr hae> <1cas"2>?h tette) ?<h> h ls=h"<pp h_il(; >/1 <hae> /edr <eto cas"otcnetceri" scin ls=ps_otn lafx> Ra mr o ".h_il(' ',fle."»,"oetee ed oe n 'tette', ' as)' ' bnshm ") ? ); > <scin /eto> <otr foe> .. . <foe> /otr <ppcmet_epae) ? ?h omnstmlt(; > <ppedhl;? ?h nwie > <ppes :? ?h le > <ril i=ps-o-on" atce d"otntfud> <edr hae> <1NtFud/1 h>o on<h> <hae> /edr <eto cas"otcnet> scin ls=ps_otn"
  • 16. THE LOOP This is what you see. It will contain The Loop. The Loop is the key to printing all your posts. This is how it starts: <ppi (hv_ot( ):wie(hv_ot( ):teps(;? ?h f aepss) hl aepss) h_ot) > And this is the end: <ppedhl;es:? ?h nwie le > <>?h _(Sry n pssmthdyu ciei.) ? p<pp e'or, o ot ace or rtra'; > <ppedf ? ?h ni; >
  • 17.
  • 19. SINGLE-<POST-TYPE>.PHP Another important feature in WordPress 3.0 is that you can add your own Custom Post Type Boxes. The default list – Post, Page, Attachment, Revisions, Nav Menus
  • 20. REGISTER A POST TYPE Add this to your fnto.h ucinpp rgse_ottp(mve' ary eitrps_ye'ois, ra( 'ae'= 'ois, lbl > Mve' 'ulc = tu, pbi' > re 'hwu'= tu, so_i > re 'aaiiytp'= 'ot, cpblt_ye > ps' 'irrhcl = fle heacia' > as, 'ert'= ary'lg = 'ois) rwie > ra(su' > mve', 'ur_a'= tu, qeyvr > re 'uprs = ary spot' > ra( 'il' tte, 'dtr, eio' 'xep' ecrt, 'rcbcs, takak' 'utmfed' cso-ils, 'omns, cmet' 'eiin' rvsos, 'hmni' tubal, 'uhr, ato' 'aeatiue') pg-trbts, ));
  • 21. “ The content is like water. And design is like a flavour sprinkled on content. ” By @standardistas at #frontend2011
  • 22. “ People say Web Design is not coding, I call that bullshit. We design the web by coding. ”
  • 24. CHILD THEMES Derive something from another theme and what you get is a Child Theme. You can do absolutely anything with a Child Theme, but the only difference between a new theme and a child theme is that. It would be residing in the parent theme's directory.
  • 25. BUILD A CHILD THEME Just make a directory in your parent theme directory.You can name it anything. You can put anything in this directory.So, if it's just a styling change you wish to make, make a syecs tl.s There are some required information that you need to mention in the child theme's CSS like – Theme Name & Template. You can refer to the Codex regarding this.
  • 26. WHAT WE HAVE COVERED The basic concepts of WordPress Little on Stylesheets Some snippets on functions Making Templates Building Child Themes My favorite theme bones
  • 27. “ We are the architects of the Web, and this is our playground. ”
  • 28. WHAT DO I DO? Read Smashing Magazine regularly. Visit Hacker News daily. Read about typography. Read anything and everything about CSS.
  • 30. THE END BY ANIKET PANT / @ANIKET_PANT