Деталі електронної книги

WordPress 2.8 Themes Cookbook. Over 100 simple but incredibly effective recipes for creating powerful, custom WordPress themes

WordPress 2.8 Themes Cookbook. Over 100 simple but incredibly effective recipes for creating powerful, custom WordPress themes

Nick Ohrn, Lee Jordan

Eлектронна книга
Themes are among the most powerful features that can be used to customize a web site and give it a professional look, especially in WordPress. Using custom themes you can brand your site for a particular corporate image, ensure standards compliance, and create easily navigable layouts. But most WordPress users still continue to use default themes as developing and deploying themes that are flexible and easily maintainable is not always straightforward and lot of issues pop up during the process.This easy-to-use step-by-step guide will help you create powerful themes for your WordPress web site, and solve your theme development problems in a quick and effective way. It enables you to take full control over your site's design and branding and make it look smarter.WordPress is distributed with two ready-to-use themes. You can use these themes to give a common look to your website, or use the techniques described in this book to create custom themes. This book includes over 100 useful recipes to help you get started and create advanced themes. It starts with the basics of WordPress themes and creating a theme from scratch. Then, it covers how to enhance your template and add effects to get a rich look. You will learn how to manage pages, categories, and tags for your blogs, and how to make your posts look unique. You will also learn about the comment system and sidebars that will help you give a new feel to your blog and web site.This book will help you through the most common problems encountered when developing a WordPress theme. You will get tips to enhance your design skill and eventually enhance your blog's design.
  • 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...
        • Theres 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
  • Назва: WordPress 2.8 Themes Cookbook. Over 100 simple but incredibly effective recipes for creating powerful, custom WordPress themes
  • Автор: Nick Ohrn, Lee Jordan
  • Оригінальна назва: WordPress 2.8 Themes Cookbook. Over 100 simple but incredibly effective recipes for creating powerful, custom WordPress themes
  • ISBN: 9781847198457, 9781847198457
  • Дата видання: 2010-07-01
  • Формат: Eлектронна книга
  • Ідентифікатор видання: e_3bep
  • Видавець: Packt Publishing