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

Hidden treasures of Ruby
Hidden treasures of RubyHidden treasures of Ruby
Hidden treasures of RubyTom Crinson
 
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 AndroidSomenath Mukhopadhyay
 
Descobrindo a linguagem Perl
Descobrindo a linguagem PerlDescobrindo a linguagem Perl
Descobrindo a linguagem Perlgarux
 
Introdução ao Perl 6
Introdução ao Perl 6Introdução ao Perl 6
Introdução ao Perl 6garux
 
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 GonzalezWithTheBest
 
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 2016Jacob Aae Mikkelsen
 
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 storytellingDioselin Gonzalez
 
モダンAngularJS @ GDG中国2014.12.6
モダンAngularJS @ GDG中国2014.12.6モダンAngularJS @ GDG中国2014.12.6
モダンAngularJS @ GDG中国2014.12.6Okuno Kentaro
 
Top 10 php classic traps
Top 10 php classic trapsTop 10 php classic traps
Top 10 php classic trapsDamien Seguy
 
The Perl6 Type System
The Perl6 Type SystemThe Perl6 Type System
The Perl6 Type Systemabrummett
 
WordPress in 30 minutes
WordPress in 30 minutesWordPress in 30 minutes
WordPress in 30 minutesOwen Winkler
 
Getting Started With Play Framework
Getting Started With Play FrameworkGetting Started With Play Framework
Getting Started With Play FrameworkTreasury user10
 
Get into the FLOW with Extbase
Get into the FLOW with ExtbaseGet into the FLOW with Extbase
Get into the FLOW with ExtbaseJochen Rau
 
WordPress 3 and You
WordPress 3 and YouWordPress 3 and You
WordPress 3 and YouOren Yomtov
 
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 serbiaDamien Seguy
 

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

Community Engagement FTW
Community Engagement FTW Community Engagement FTW
Community Engagement FTW Aniket Pant
 
Metaboxes. Do them right.
Metaboxes. Do them right.Metaboxes. Do them right.
Metaboxes. Do them right.Aniket Pant
 
The Power of CSS
The Power of CSSThe Power of CSS
The Power of CSSAniket Pant
 
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 modelsMichal Kreczmar
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionIn a Rocket
 
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 PlanPost Planner
 

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 GUIDE

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 OmekaArden Kirkland
 
PhpUnit Best Practices
PhpUnit Best PracticesPhpUnit Best Practices
PhpUnit Best PracticesEdorian
 
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 1jsalonen Salonen
 
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 javaAlexander Gyoshev
 
Making the most of 2.2
Making the most of 2.2Making the most of 2.2
Making the most of 2.2markstory
 
Using Phing for Fun and Profit
Using Phing for Fun and ProfitUsing Phing for Fun and Profit
Using Phing for Fun and ProfitNicholas Jansma
 
An Introduction to CSS Preprocessors
An Introduction to CSS PreprocessorsAn Introduction to CSS Preprocessors
An Introduction to CSS PreprocessorsMiloš Sutanovac
 
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 OmekaArden Kirkland
 
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 friendajacksified
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJSPat Cito
 
Learn Frontend Testing
Learn Frontend TestingLearn Frontend Testing
Learn Frontend TestingRyan Roemer
 
Ods Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A TutorialOds Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A Tutorialsimienc
 
SecureSocial - Authentication for Play Framework
SecureSocial - Authentication for Play FrameworkSecureSocial - Authentication for Play Framework
SecureSocial - Authentication for Play Frameworkjaliss
 
The state of PHPUnit
The state of PHPUnitThe state of PHPUnit
The state of PHPUnitEdorian
 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) ThemingPINGV
 
basic knowledge abot html
basic knowledge abot htmlbasic knowledge abot html
basic knowledge abot htmlAnkit Dubey
 
PHP Basics and Demo HackU
PHP Basics and Demo HackUPHP Basics and Demo HackU
PHP Basics and Demo HackUAnshu Prateek
 
The State of PHPUnit
The State of PHPUnitThe State of PHPUnit
The State of PHPUnitEdorian
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to AnsibleMattias Gees
 

Similar a THEME DEVELOPMENT AND CUSTOMIZATION GUIDE (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

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 

THEME DEVELOPMENT AND CUSTOMIZATION GUIDE

  • 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