万本电子书0元读

万本电子书0元读

顶部广告

WordPress 2.8 Themes Cookbook电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Nick Ohrn

出  版  社:Packt Publishing

出版时间:2010-07-01

字       数:168.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Each recipe comprises step-by-step instructions followed by the analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order. There are plenty of useful screenshots to make learning easier for you. This book is for WordPress developers who want to create powerful themes for their blogs and web sites to impress and influence visitors. This book expects working knowledge of the WordPress platform. Knowledge of HTML and CSS would also be useful.
目录展开

WordPress 2.8 Themes Cookbook

Table of Contents

WordPress 2.8 Themes Cookbook

Credits

About the Authors

About the Reviewers

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. WordPress Theme Basics

Introduction

Finding documentation on WordPress.org

Getting ready

How to do it...

How it works...

Downloading themes from the WordPress theme repository

Getting ready

How to do it...

How it works...

There's more...

Try search

Tag filter

Downloading themes from third-party websites

How to do it...

How it works...

There's more...

Installing and activating a theme

Getting ready

How to do it...

How it works...

Displaying the blog name

How to do it...

How it works...

There's more...

Blog info available

Retrieving information without displaying it

Getting the absolute directory path of the active theme

How to do it...

How it works...

Creating a theme from scratch

How to do it...

There's more...

Recognized WordPress files

Organizing a theme

See also

Creating a child theme

Getting ready

How to do it...

How it works...

There's more...

Maintaining default styling

See also

Creating a theme by using a theme framework

Getting ready

How to do it...

How it works...

There's more...

See also

Adding expected WordPress hooks

How to do it...

How it works...

There's more...

Including PHP files from your theme

Getting ready

How to do it...

How it works...

There's more...

2. Creating Navigation

Introduction

Listing all of the pages that exist on a blog

How to do it...

How it works...

There's more...

Passing parameters

Listing all of the categories defined for a blog

How to do it...

How it works...

There's more...

Passing parameters

Listing all of the tags in use on a blog

How to do it...

How it works...

There's more...

Passing parameters

Highlighting the current page in the navigation

How to do it...

How it works...

There's more...

Adding a search function to a theme

How to do it...

How it works...

There's more...

Getting the category page link from a category name

How to do it...

How it works...

Displaying page links only if the destination page exists

How to do it...

How it works...

Creating a category drop-down menu

How to do it...

How it works...

Creating drop-downs using child pages

Getting started

How to do it...

How it works...

See also

3. The Loop

Introduction

Creating a basic Loop

How to do it...

How it works...

Displaying ads after every third post

How to do it...

How it works...

Removing posts in a particular category

How to do it...

How it works...

Removing posts with a particular tag

How to do it...

How it works...

Highlighting sticky posts

How to do it...

How it works...

Creating multiple loops in a single template

How to do it...

How it works...

There's more…

Displaying only posts in a particular category

How to do it...

How it works...

Styling every other post differently

How to do it...

How it works...

Styling posts in a particular category differently

How to do it...

How it works...

Showing every post in a category on a category archive page

How to do it...

How it works...

See also

4. Template Tags

Introduction

Displaying the post title

How to do it...

How it works...

There's more...

See also

Automatically limiting the number of words of content

How to do it...

How it works...

Determining if the user is on a specific page

How to do it...

How it works...

Determining if the user is viewing a post in a particular category

How to do it...

How it works...

There's more...

Displaying the post date for each post

How to do it...

How it works...

Highlighting search terms in post content

How to do it...

How it works...

Displaying login/logout links

How to do it...

How it works...

There's more...

Adding navigation through older/newer posts

How to do it...

How it works...

There's more...

Displaying an edit link for posts

How to do it...

How it works...

Displaying custom field content

How to do it...

How it works...

There's more...

Displaying a post author's avatar

How to do it...

How it works...

5. Comments

Introduction

Displaying a comment form on a post

How to do it...

How it works...

There's more...

Displaying comments on a post

How to do it...

How it works...

There's more...

Separating comments and trackbacks

Changing the Avatar size

Available parameters

Displaying the latest comments on your blog

How to do it...

How it works...

There's more...

Getting only certain comment types

Getting only comments for a particular post

Available parameters

Highlighting the post author's comments

How to do it...

How it works...

See also

Alternating the style for comments

How to do it...

How it works...

See also

Displaying threaded comments properly

How to do it...

How it works...

See also

6. Sidebars

Introduction

Using the Text widget for custom sidebar content

Getting ready

How to do it...

Including a dynamic sidebar in your theme

Getting ready

How to do it...

How it works...

There's more...

Finding inspiring sidebars for your theme design

Including multiple dynamic sidebars in your theme

Getting ready

How to do it...

How it works...

There's more...

Sidebar parameters

Default content

Setting the default widgets for a sidebar in your theme

Getting ready

How to do it...

How it works...

There's more...

Widget IDs

Positioning multiple sidebars in your theme by using CSS

Getting ready

How to do it...

How it works...

There's more...

Position: absolute versus float

Doing more with design and layout

Styling the appearance of sidebars in your theme by using CSS

Getting ready

How to do it…

How it works…

There's more…

Design and Layouts: The WordPress codex

Sandbox: The theme for maximum appearance options

Displaying different widgets on different pages by using the Widget Logic plugin and conditional tags

Getting ready

How to do it...

How it works...

There's more...

Getting more out of conditional tags

Specific sidebars for custom theme pages

Showing asides in the sidebar by using the Miniposts plugin

Getting ready

How to do it...

How it works...

There's more…

Creating custom asides

Adding an interactive Facebook-style wall to a sidebar by using jQuery

Getting ready

How to do it...

How it works...

There's more...

Doing more with WP Wall

7. Custom Page Templates

Introduction

Creating a simple page template

Getting ready

How to do it...

How it works...

Creating an archives page template

Getting ready

How to do it...

How it works...

There's more...

Listing archive links

Listing Categories

See also

Creating a taxonomy navigation template

Getting ready

How to do it...

How it works...

See also

Displaying author avatars and descriptions

Getting ready

How to do it...

How it works...

There's more...

See also

Creating a table of contents page template

Getting ready

How to do it...

How it works...

There's more...

See also

Showing your pictures from Flickr

Getting ready

How to do it...

How it works...

See also

Displaying a special template for a specific category

Getting ready

How to do it...

How it works...

8. Integrating Media

Introduction

Aligning images properly within a post

Getting started

How to do it...

How it works...

Styling image galleries

Getting started

How to do it...

How it works...

Styling image captions

Getting started

How to do it...

How it works...

See also

Creating a media template

Getting started

How to do it...

How it works...

See also

Creating a media template for a specific media type

Getting started

How to do it...

How it works...

There's more…

Using file and image attachments in WordPress

See also

Displaying a related image for every post

Getting started

How to do it...

How it works...

There's more…

Using Viper's Regenerate Thumbnails plug-in

Creating video posts by using the Viper's Video QuickTags plug-in

Getting started

How to do it…

How it works...

There's more…

Adapting your site for mobile content viewing by using the WPtouch theme

9. Showing Author Information

Introduction

Getting author data via an author's ID

Getting started

How to do it...

How it works…

Dynamically displaying the author's name and linked e-mail address

Getting started

How to do it…

How it works...

There's more…

Dive deeper into data

Listing all of the published authors on a site

Getting started

How to do it...

How it works...

Listing the authors who most recently published a post

Getting started

How to do it...

How it works...

See also

Listing authors by the total number of comments that their posts have received

Getting started

How to do it...

How it works...

See also

Adding a custom user field to display an author's Twitter link

Getting started

How to do it...

How it works...

There's more…

Displaying an image next to the 'Follow' link

10. Adding JavaScript Effects

Introduction

Linking to your theme's JavaScript files directly

Getting started

How to do it...

How it works...

See also

Adding JavaScript files to your theme programmatically

Getting started

How to do it...

How it works...

There's more...

Placing wp_enqueue_script in the footer for better site performance

Taking advantage of wp_register_script

Adding a bundled library to your theme programmatically

Getting started

How to do it...

How it works...

There's more...

List of bundled scripts

See also

Creating a featured post slider

Getting started

How to do it...

How it works...

There's more…

Theming your slider with Themeroller

See also

Making sidebar widgets toggle-able

Getting started

How to do it...

How it works...

There's more...

Remembering the widget's state

Adding a font size toggle

How to do it...

How it works…

11. Advanced WordPress Themes

Introduction

Adding a theme options page

Getting started

How to do it...

How it works...

There's more…

Diving into administrative settings for themes

Allowing for multiple theme color schemes

Getting started

How to do it...

How it works...

See also

Changing the default Gravatar icon for your theme

Getting started

How to do it...

How it works...

There's more...

Forcing your theme to use your default avatar

Registering shortcodes for your theme

How to do it…

There's more…

Displaying Twitter trends by using shortcodes in posts

Localizing your theme

How to do it…

How it works…

There's more…

Becoming a WordPress theme translator

Displaying information based on the logged-in user's role

How to do it…

How it works…

There's more…

Easier ways to use user roles in WordPress 3.0

Packaging your theme for distribution

How to do it…

There's more…

Is your theme really ready for public release?

Uploading your theme to the WordPress.org theme repository

Getting started

How to do it…

How it works…

12. Layout

Introduction

Adding a skip navigation link for usability

Getting started

How to do it...

How it works...

Centering your site's layout in the browser window

Getting started

How to do it...

How it works...

Setting up a randomly-rotating header image

Getting started

How to do it...

How it works...

Making theme components drag-and-drop

Getting started

How to do it...

How it works...

There's more...

Saving the category order

See also

Creating a global toolbar for your theme

Getting started

How to do it...

How it works...

Creating tabbed navigation for your theme

Getting started

How to do it...

How it works...

There's more…

Many menus, many resources

Index

累计评论(0条) 2个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部