Thord Daniel Hedengren - Smashing WordPress_ Beyond the Blog-Wiley (2014)
CHAPTER 5 • The Child Theme Concept 125 EVENT CHILD THEMES One of the cooler, albeit not as groundbreaking, usages of child them ...
126 PART II • Designing and Developing WordPress Themes CHILD THEMES AND INTERNATIONALIZATION Preparing your theme for other lan ...
CHAPTER 5 • The Child Theme Concept 127 So what’s the verdict: Are child themes a good idea? In most cases, yes. If you discover ...
128 PART II • Designing and Developing WordPress Themes If your users have access to several themes and pick whichever they like ...
CHAPTER 5 • The Child Theme Concept 129 After these three steps, things get a bit more fluid. Start creating child themes that f ...
130 PART II • Designing and Developing WordPress Themes WHAT ABOUT THEME FRAMEWORKS? There’s a lot of talk about theme framework ...
at hand. Building a WordPress theme and releasing or even selling it is one thing, but building a fully fledged WordPress-powere ...
132 PART II • Designing and Developing WordPress Themes OUTLINING THE THEME The first thing you should do when you’re starting a ...
CHAPTER 6 • Advanced Theme Usage 133 RULE #1: STYLE BY CATEGORY, SORT BY TAG, AND TUNE WITH POST FORMATS Categories are great fo ...
134 PART II • Designing and Developing WordPress Themes Keep in mind that using custom fields to do simple stuff like asides is ...
CHAPTER 6 • Advanced Theme Usage 135 But first, you need to understand the more obvious individual styling technique. I’m talkin ...
136 PART II • Designing and Developing WordPress Themes Most of the time, however, you don’t want to style individual posts per ...
CHAPTER 6 • Advanced Theme Usage 137 As you can see, adding a class to post_class() is as easy as adding a parameter. A similar ...
138 PART II • Designing and Developing WordPress Themes This indicates that whenever body_class() returns the single class, whic ...
CHAPTER 6 • Advanced Theme Usage 139 ◾ single-paged-X (where X is the page number, referring to posts with multiple pages) ◾ pag ...
140 PART II • Designing and Developing WordPress Themes Another obvious usage is for announcements. If you’re selling e-books, f ...
CHAPTER 6 • Advanced Theme Usage 141 Figure 6-2: The Custom Fields box resides on the Add New Post screen, underneath the regula ...
142 PART II • Designing and Developing WordPress Themes Suppose you have a custom field with a key called Actor with the value H ...
CHAPTER 6 • Advanced Theme Usage 143 You can create several meta boxes within this function, but for this example, just create o ...
144 PART II • Designing and Developing WordPress Themes This meta box won’t do anything, though; it won’t save data or anything. ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf