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'
}
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; >
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.