Category Archives: Code snippets

Add the_post_thumbnail to post excerpts

WordPress 2.9 has a new post thumbnail feature that I’ve been exploring as part of this site’s layout in preparation for updates to some client sites. Adding the code below to your child theme’s functions.php file will activate the post thumbnail feature in WP2.9, then change the default content display on the home page or [...]

Read More »

Posted in Code snippets | Tagged , | 3 Comments

Remove sidebar

Add this function to functions.php to remove the sidebar from a Thematic child theme (either globally or conditionally): // Remove sidebars from feature template function remove_sidebar() { // We test if we are on the page template 'Feature' if (is_page_template('feature.php')) { // Yes, we are .. now we switch off the sidebar return FALSE; } [...]

Read More »

Posted in Code snippets | Tagged , | Leave a comment