Thord Daniel Hedengren - Smashing WordPress_ Beyond the Blog-Wiley (2014)
CHAPTER 6 • Advanced Theme Usage 145 // Add support for featured images add_theme_support( 'post-thumbnails' ); } Naturally, thi ...
146 PART II • Designing and Developing WordPress Themes Just enabling the Featured Image box won’t make the featured images show ...
CHAPTER 6 • Advanced Theme Usage 147 That’s all there is to it. Now the user can add a menu to the Smashing Menu area in the the ...
148 PART II • Designing and Developing WordPress Themes the header size there. Add default-image too to show a default header wh ...
CHAPTER 6 • Advanced Theme Usage 149 CUSTOM BACKGROUND IMAGES So what about the custom background image? It’s simple: The follow ...
150 PART II • Designing and Developing WordPress Themes Figure 6-5: The Theme Customizer as it looks when you’ve got the Twenty ...
CHAPTER 6 • Advanced Theme Usage 151 To populate the kihon_theme_settings() function, you first need to create a brand-new secti ...
152 PART II • Designing and Developing WordPress Themes // Add setting for kihon_footer_copyright $wp_customize->add_setting( ...
CHAPTER 6 • Advanced Theme Usage 153 The label is descriptive, the type is checkbox (which will be unchecked by default), and it ...
154 PART II • Designing and Developing WordPress Themes The following is the complete code for the theme settings: // THEME SETT ...
CHAPTER 6 • Advanced Theme Usage 155 A theme option page is a page in the WordPress admin interface containing information or op ...
156 PART II • Designing and Developing WordPress Themes the question of whether said settings should be a theme options page at ...
CHAPTER 6 • Advanced Theme Usage 157 HOOKING ON If you want to hook on to one of WordPress’s action hooks, say by adding some we ...
158 PART II • Designing and Developing WordPress Themes Just put in your intended hook name and put the code wherever you want i ...
CHAPTER 6 • Advanced Theme Usage 159 more, say a separate way of tagging posts, called To p i c s; you can add that, which gives ...
160 PART II • Designing and Developing WordPress Themes ◾ Separate various kinds of terms. With a specific taxonomy for person, ...
CHAPTER 6 • Advanced Theme Usage 161 THE POWER OF CUSTOM POST TYPES Custom post types are an extremely powerful tool. Thanks to ...
162 PART II • Designing and Developing WordPress Themes MULTIPLE LANGUAGE SUPPORT Just as you can get WordPress in your language ...
CHAPTER 6 • Advanced Theme Usage 163 Call up the trusty Twenty Twelve theme, a former default theme, for an example. In the inde ...
164 PART II • Designing and Developing WordPress Themes Other software and services for working with .po files include GNU’s ver ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf