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

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.

主站蜘蛛池模板: 新安县| 隆化县| 修文县| 芷江| 广南县| 珲春市| 株洲市| 乌兰察布市| 乌拉特前旗| 洪雅县| 定兴县| 青阳县| 武陟县| 博白县| 加查县| 平阳县| 类乌齐县| 城步| 翁牛特旗| 广饶县| 沁阳市| 大港区| 长白| 伽师县| 左权县| 松原市| 双鸭山市| 胶州市| 安顺市| 文登市| 泰宁县| 博客| 伊宁市| 衡阳县| 公主岭市| 吴堡县| 定襄县| 达州市| 郯城县| 甘肃省| 兴文县|