1. 10 THEME HACKS TO IMPROVE YOUR SITE Morten Rand-Hendriksen Creative Director, Pink & Yellow Media www.designisphilosophy.com Twitter: @mor10 HELLO,MY NAME IS MOR10people tend to spell it with an ‘o’, but that’s just plain wrong
2. Why does it matter? When people visit a site, they expect the site logo or header image to point back to the home page. That’s just the way it is. REPLACE TITLE WITH A LINKED IMAGE 1
12. Step 2a: Add to theme file: <?php wp_nav_menu(array( 'theme_location' => 'primary' )); ?> (targets name set in functions.php) ENABLE WP 3 MENUS 2
13. Step 2b: Add to theme file: <?php wp_nav_menu(array( 'name' => 'Menu Name' )); ?> (targets name as set in WP menu admin) ENABLE WP 3 MENUS 2
14. Menus don’t have to be boring! WordPress 3 menus allow you to add HTML to the Navigation Label. This can be exploited utilized. MENUSOUTSIDE THE BOX 3
26. Background control from Admin You’ve seen it in TwentyTen … Changing background colour and even background images … But did you know you can add this function to any theme? WP 3 CUSTOM BACKGROUND 4
46. Give your pages some identity Custom Page Templates let you create different looks for different pages. In other words, it makes your site less boring. CUSTOMPAGETEMPLATE 6
47. Add to the top of template file: <?php /* Template Name: Whatever */ ?> CUSTOMPAGETEMPLATE 6
55. Add some Information Architecture Custom Category Templates let you create different looks depending on what category index is displayed. Portfolio gallery anyone? CUSTOMCATEGORYTEMPLATE 7
56. Create a new file with the name: category-slug.php or category-ID.php CUSTOMCATEGORYTEMPLATE 7
60. Create a new file with the name: category-slug.php or category-ID.php CUSTOMCATEGORYTEMPLATE 7
61.
62.
63.
64. Why use just one? Custom headers, sidebars and footers allow limitless variations. Who says your sidebar has to be the same throughout your site? CUSTOMHEADER,SIDEBARAND FOOTER 8
65. Header, sidebar and footer naming: header-custom.php sidebar-custom.php footer-custom.php Where 'custom' can be anything CUSTOMHEADER,SIDEBARAND FOOTER 8
66. To call from template files: <?phpget_header('custom'); ?> <?phpget_sidebar('custom'); ?> <?phpget_footer('custom'); ?> Where 'custom' is the suffix of the file CUSTOMHEADER,SIDEBARAND FOOTER 8
67. Who cares about next and previous? Provide links to related posts right inside your post – without a plugin. Keep ‘em coming back for more. BETTERCONTEXTLINKS 9
69. Create a query that pulls the two newest articles in the same category. Create a conditional statement that excludes the current post. Create another conditional statement that ensures there are actually two posts to display. Do all this within the post loop. Easy as 𝜋 BETTERCONTEXTLINKS 9
71. Go to www.designisphilosophy.com Download related.php Place related.php in your theme folder Open single.php Paste the following line of code where you want the related posts to appear: <?phpget_template_part('related'); ?> BETTERCONTEXTLINKS 9
74. Use your domain proactively Why send people to facebook.com/yourdomain when you can send them to yourdomain.com/facebook? Or Twitter, or Flickr, or anything BRANDYOURSOCIAL LINKS 10
75. Not a hack – a plugin Quick Page / Post Redirect Plugin by Don Fischer Get it from the WordPress plugin directory. BRANDYOURSOCIAL LINKS 10
78. Get in touch with me Morten Rand-Hendriksen Owner & Creative Director Pink & Yellow Media designisphilosophy.com pinkandyellow.com twitter.com/Mor10 morten@pinkandyellow.com
Hinweis der Redaktion
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…
The header text can be replaced with this simple block of code. Simple…