官术网_书友最值得收藏!

Chapter 2. Theme Design and Approach

Welcome to this chapter on theme design and approach. My hope for this chapter is that even you design pros may discover interesting tidbits that will help you in your WordPress theme design creation. The purpose of this chapter is to help you create a working XHTML and CSS-based mockup, with a view to having it end up being a WordPress theme while staying compliant with W3C standards and table-less CSS layout techniques.

Theme design is essentially web design and, throughout the chapter, we'll be focusing a bit more on thinking about standards and compliance first. The first part of the approach will cover what we want to design for (keeping in mind it will end up in WordPress) and the second half will focus more on creating a design that is made with the content in mind.

This approach will give us a more flexible, yet solid XHTML and CSS structure. We'll then be able to enhance and embellish that structure with great visual design. The more "standard" approach most of us are familiar with makes us create a purely visual design first and then jump through hoops to create XHTML and CSS to support that design. We then attempt to fit content into the design, often causing a few more glitches along the way. This approach often creates less-than-ideal markup and the need for hacks and fixes, just to get the design to hold up across all browsers and varying types of content.

While you might find this approach a little strange at first, it's by no means set in stone as the only right way to design! Simply read through the chapter and, even if you already have a polished Photoshop or GIMP mockup, go ahead and try to set up your XHTML and CSS mockup using the steps laid out in this chapter. You may find it helps your process.

In this chapter, we're going to take a look at:

  • The essential elements you need to consider when planning your theme design
  • The best tools and process for making that design a reality
  • An introduction to my own rapid design comping strategy
  • Some tips and tricks to help you define your color scheme and graphic style
  • Some standard techniques for slicing and extracting images for your design

By the end of this chapter, you'll have a working XHTML-and CSS-based "comp" or mockup of your WordPress theme's design, ready to be coded up and assembled into a fully functional WordPress theme.

Tip

Already got a design? Not a designer at all?

That's fine! This chapter covers the ins and outs of web design best practices, with a view to ending up with a unique and custom WordPress theme. It contains time honored and tested methods for approaching compliant, accessible XHTML and CSS creation. If you're a total XHTML/CSS design wizard, you can skim this chapter for any new tips and tricks that might be of use to you and then move on to Chapter 3.

If you're not a designer at all and you just need to convert an existing XHTML/CSS template into WordPress, I'd still recommend you skim this chapter, as it may help you better understand some of the XHTML markup and CSS in your template. You can then move on to Chapter 3 to learn how to code up and dice working XHTML and CSS templates and mockups into WordPress.

主站蜘蛛池模板: 阜平县| 克拉玛依市| 奉新县| 沿河| 温泉县| 美姑县| 蒙阴县| 洞头县| 逊克县| 武清区| 荣昌县| 项城市| 固安县| 平舆县| 朝阳市| 治多县| 新昌县| 阿坝县| 金门县| 金川县| 运城市| 长岛县| 普定县| 民和| 鹤峰县| 安平县| 蓝山县| 宁城县| 晋州市| 徐水县| 滨海县| 兰坪| 普陀区| 大名县| 理塘县| 新闻| 金湖县| 太仓市| 鹿邑县| 铁岭县| 望谟县|