Smashing Wordpress Themes.pdf

(7003 KB) Pobierz
892302060.001.png
Smashing
WordPress
Themes ®
Table of Contents
Introduction
Part I: What Are WordPress Themes?
Part II: Hacking a Theme
Part III: Building Your Own Theme
Part IV: Taking Themes Further
Chapter 1: Getting Started with WordPress
Installing WordPress in Just Five Minutes
Running WordPress Using a Web Host
Running WordPress Locally
Fine Tuning Your WordPress Settings
Permalinks
Media Settings and the Upload Folder
Other noteworthy Settings
Shameless Self Promotion
WordPress Theme Files
WordPress As a CMS
Posts, Pages, and New Custom Post Types
2
Taxonomies
Custom Post Types
The WordPress Codex
Wrapping It Up
Chapter 2: This is a Theme
About Themes
The Stylesheet
Theme Declaration
Set tags for your theme
Define a child theme
Add comments for developers
The template files at your disposal
Header and Footer Template Files
The Loop and your Content
What is the Wordpress Loop?
The Loop TEMPLATE tag
Using the Loop in TEMPLATE FILEs
The Functions.PHP File
Using Page Templates
Creating a Page Template
Why use Page Templates?
Understanding Template Tags
3
Wrapping It Up
Chapter 3: Digging into the Twenty Ten Theme
Working With the loop
The external loop.php file
Do I have to use loop.php?
The Twenty Ten loop
Displaying Posts with loops
Example: Listing Only Titles in Category
Archives
Working With Template Tags
Passing parameters
about strings, booleans, and integers
Finding the template tag you want
A few words about localization
Conditional Content with Conditional Tags
Working with conditional tags
Example: Adding Conditional Sidebars
Enabling Features in functions.php
Add the add_theme_support template tag
Pass the correct parameters
Adding Widgets using template files
4
Define widget areas
Add widget areas to the template files
Put widgets to good use
Example: Adding a New Widget Area
The Power of Custom Page templates
Create a Custom page template
Example: Creating an Archives Page
Template
Finding Your Way With custom Menus
Declare a Menu Area
Add A Menu area to your template files
Example: Adding a Menu Area
Changing your Header Image
Define the header in functions.php
Display the header in your theme
Example: Adding a Custom Header
Adjusting Your Site Background
Wrapping It Up
Chapter 4: Using Child Themes
The Child Theme Concept
Why are child themes so great?
How Child Themes Work
5
Zgłoś jeśli naruszono regulamin