thumbnail support on twentyten

// Add theme support for post thumbnails add_theme_support(‘post-thumbnails’); add_image_size( ‘custom_thumb’, 150, 150, true);   // Add thumbnail to excerpt add_filter( ‘the_excerpt’, ‘excerpt_thumbnail’ ); function excerpt_thumbnail($excerpt){ if(is_single()) return $excerpt; global $post; if ( has_post_thumbnail() ) { $img .= ”.get_the_post_thumbnail($post->ID, ‘custom_thumb’).”; } else { $img = ”; } return $img.$excerpt; }

company logo on twentyten

http://www.blog.web6.org/add-logo-to-twenty-ten-wordpress/ 7. Look for header.php and copy paste the content to html editor (notepad or notepad++). 8. Look for this code on line 49 until line 52, and delete it. (i said 57 instead of 47 lol!) <<?php echo $heading_tag; ?> id=”site-title”> <span> <a href=”<?php echo home_url( ‘/’ ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, …

cform7

fieldset form inline

Styling The Form There is a very important reason this tutorial far has been very (HTML) source code oriented. CSS applies style rules to tags. Without understanding the tags that make up a document it is impossible to effectively style it. CSS can be used to customize the default formatting of tags such as to …

gallery and caption

A Solution For The WordPress Gallery November 16th, 2009 by Michael • WordPress Hacks • 36 Comments There are things in WordPress, I do not like. This includes the gallery. Not that the idea behind it is bad. It is just poorly implemented. But only criticizing is not fair. Let’s see what you can do …

10 tecniche css

Nel precedente articolo abbiamo visto a grandi linee (grandissime a dirla tutta) cos’è il CSS3 e perchè presto scalzerà l’attuale standard CSS 2.1. Come promesso in quella sede, è il momento di vedere più da vicino questo linguaggio e saggiare vedere in pratica qualche pillola delle sue potenzialità. Qui vedremo degli esempi di codice che …