WordPress Theme Development for Designers
-
Upload
elliotjaystocks -
Category
Design
-
view
122 -
download
0
description
Transcript of WordPress Theme Development for Designers
![Page 1: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/1.jpg)
1
2
3
4
5
Hello
An introduction to WordPress
The core components of a theme
Using WordPress as a proper CMS
Morning tea
A portfolio powered by WordPress
Building a brand new theme
QampA discussion
900 - 915
0915 - 0930
0930 - 1000
1000 - 1030
1030 - 1100
1100 - 1130
1130 - 1200
1200 - 1230
An introduction to WordPress
Setting up WordPress on your local machine
apachefriendsorgenxampphtml
(or WAMP at wampservercom)
MAMP (OSX)
XAMPP (Windows)
mampinfo
Dummy content
Dummy content on the Starkers demo elliotjaystockscomstarkersdemo
themeshapercomwordpress-theme-development-tools-tutorial
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 2: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/2.jpg)
An introduction to WordPress
Setting up WordPress on your local machine
apachefriendsorgenxampphtml
(or WAMP at wampservercom)
MAMP (OSX)
XAMPP (Windows)
mampinfo
Dummy content
Dummy content on the Starkers demo elliotjaystockscomstarkersdemo
themeshapercomwordpress-theme-development-tools-tutorial
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 3: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/3.jpg)
Setting up WordPress on your local machine
apachefriendsorgenxampphtml
(or WAMP at wampservercom)
MAMP (OSX)
XAMPP (Windows)
mampinfo
Dummy content
Dummy content on the Starkers demo elliotjaystockscomstarkersdemo
themeshapercomwordpress-theme-development-tools-tutorial
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 4: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/4.jpg)
apachefriendsorgenxampphtml
(or WAMP at wampservercom)
MAMP (OSX)
XAMPP (Windows)
mampinfo
Dummy content
Dummy content on the Starkers demo elliotjaystockscomstarkersdemo
themeshapercomwordpress-theme-development-tools-tutorial
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 5: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/5.jpg)
Dummy content
Dummy content on the Starkers demo elliotjaystockscomstarkersdemo
themeshapercomwordpress-theme-development-tools-tutorial
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 6: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/6.jpg)
Dummy content on the Starkers demo elliotjaystockscomstarkersdemo
themeshapercomwordpress-theme-development-tools-tutorial
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 7: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/7.jpg)
themeshapercomwordpress-theme-development-tools-tutorial
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 8: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/8.jpg)
The basics of WordPress
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 9: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/9.jpg)
The dashboard on a fresh WordPress installation
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 10: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/10.jpg)
The core components of a theme
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 11: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/11.jpg)
The template files in the lsquodefaultrsquo theme
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 12: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/12.jpg)
The only files you actually need in a theme
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 13: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/13.jpg)
indexphp
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 14: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/14.jpg)
The lsquolooprsquo
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 15: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/15.jpg)
Use WordPress to power your entire site
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 16: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/16.jpg)
Utilise the simple stuff
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 17: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/17.jpg)
Built-in elements you can use
Post title
Category title description
Use naming conventions to avoid repeating yourself
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 18: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/18.jpg)
Custom fields
Custom fields for content (to call in images etc)
Custom fields for definitions(should this be featured on the home page etc)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 19: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/19.jpg)
Conditional tags
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 20: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/20.jpg)
Template tags
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 21: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/21.jpg)
Basic ifelse statements
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 22: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/22.jpg)
Say it in English
What am I trying to accomplish
If a certain situation occurs do Xif it doesnrsquot occur do Y
Whatrsquos the easiest way to accomplish this
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 23: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/23.jpg)
START
If the page slug is design-network use the word lsquoDesignrsquo as my network name
but if the page slug is photography-network use the word lsquoPhotographyrsquo as my network name
or if itrsquos neither of those just use the word lsquoDefaultrsquo as my network name
END
Think of things in plain English
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 24: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/24.jpg)
ltphp
if (is_page(design-network)) $network=Design
elseif (is_page(photography-network)) $network=Photography
else default $network=Default
gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 25: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/25.jpg)
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtDesignltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 26: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/26.jpg)
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtPUT_THE_NETWORK_NAME_HEREltstronggt networklth2gt
Set up a variable you can use later on
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 27: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/27.jpg)
lth2gt Fusion Ads delivered ltstronggt17737824ltstronggt ad impressions in July across its dedicated ltstronggtltphp echo $network gtltstronggt networklth2gt
Set up a variable you can use later on
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 28: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/28.jpg)
START
If the page is the lsquohomersquo page use the word lsquohomersquo as my bodyrsquos classname
but if itrsquos in the lsquoportfoliorsquo category use the word lsquoportfoliorsquo as my bodyrsquos classname
unless itrsquos in the lsquospeakingrsquo category then use the word lsquospeakingrsquo as my bodyrsquos classname
or if itrsquos the lsquopublicationrsquo page use the word lsquopublicationrsquo as my bodyrsquos classname
but if itrsquos a 404 or search results page use the word lsquoresultsrsquo as my bodyrsquos classname
or if itrsquos none of the above just use the word lsquodefaultrsquo as my bodyrsquos classname
END
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 29: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/29.jpg)
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 30: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/30.jpg)
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_home
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 31: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/31.jpg)
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_category
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 32: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/32.jpg)
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_page
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 33: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/33.jpg)
ltphp
if (is_home()) Home $bodyclass=home
elseif (is_category(portfolio)) Portfolio $bodyclass=portfolio
elseif (is_category(speaking)) Speaking $bodyclass=speaking
elseif (is_page(publication)) publication $bodyclass=publication
elseif (is_404() || is_search()) 404 or search $bodyclass=nothing
else default $bodyclass=blog
gt
Set up a variable you can use later on
is_404() || is_search
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 34: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/34.jpg)
ltbodygt
Set up a variable you can use later on
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 35: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/35.jpg)
ltbody class=PUT_THE_CLASSNAME_HEREgt
Set up a variable you can use later on
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 36: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/36.jpg)
ltbody class=ltphp echo $bodyclass gtgt
Set up a variable you can use later on
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 37: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/37.jpg)
WP Candy Template hierarchy diagram jmpwphierarchy
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 38: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/38.jpg)
WP Candy WordPress Help Sheet jmpwphelpsheet1
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 39: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/39.jpg)
WP Candy Advanced WordPress Help Sheet jmpwphelpsheet2
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 40: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/40.jpg)
ltli class=bloggt lta href=httpelliotjaystockscombloggt Blog ltagtltligt
ltli class=portfoliogt lta href=httpelliotjaystockscomportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=httpelliotjaystockscomspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 41: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/41.jpg)
ltli class=bloggt lta href=ltphp bloginfo(url) gtbloggt Blog ltagtltligt
ltli class=portfoliogt lta href=ltphp bloginfo(url) gtportfoliogt Portfolio ltagtltligt
ltli class=speakinggt lta href=ltphp bloginfo(url) gtspeakinggt Speaking ltagtltligt
Set up a variable you can use later on
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 42: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/42.jpg)
Custom page templates
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 43: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/43.jpg)
category-Xphp
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 44: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/44.jpg)
Multiple singlephp templates
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 45: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/45.jpg)
Multiple singlephp templates jmpmultiplesingle
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 46: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/46.jpg)
Essential plugins
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 47: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/47.jpg)
Plugins for basic use
Akismet
Author Highlight
Comment Timeout
Google XML Sitemaps
Maintenance Mode
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 48: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/48.jpg)
Advanced plugins for CMS use
Advanced Excerpt
Duplicate Post
Improved Include Page
Top Level Categories
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 49: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/49.jpg)
Start with an existing theme(starting from scratch = scary)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 50: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/50.jpg)
Integrating scriptsamp stylesheets
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 51: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/51.jpg)
Including jQuery the right way jmpjquerywp
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 52: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/52.jpg)
A quick word on child themes
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 53: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/53.jpg)
A portfolio powered by WordPress
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 54: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/54.jpg)
Building a brand new theme
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 55: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/55.jpg)
If you liked this yoursquoll love
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 56: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/56.jpg)
The ultimate tutorial themeshapercomwordpress-themes-templates-tutorial
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 57: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/57.jpg)
Sexy Web Designby Elliot Jay StocksExpert reviewers Jina Bolton amp Dan Rubin
Published by SitePoint
Shameless plug
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251
![Page 58: WordPress Theme Development for Designers](https://reader038.fdocuments.net/reader038/viewer/2022103015/54c823db4a7959e76d8b45b6/html5/thumbnails/58.jpg)
Thank you
elliotjaystockscom | twittercomelliotjaystocks
Pin-ups image by Mauren Veras - flickrcomphotosmauren2298724158
Paint textures from The Stock Exchange - sxchu
Set in FS Clerkenwell - fontsmithcomfont_detailsphpfont_num=251