Remove Author, Post and Category-related Text from a Theme?

In functions.php find: if ( ! function_exists( ‘twentyten_posted_on’ ) ) : /** * Prints HTML with meta information for the current post—date/time and author. * * @since Twenty Ten 1.0 */ function twentyten_posted_on() { printf( __( ‘<span class=”https://wordpress.stackexchange.com/questions/6277/%1$s”>Posted on</span> %2$s <span class=”meta-sep”>by</span> %3$s’, ‘twentyten’ ), ‘meta-prep meta-prep-author’, sprintf( ‘<a href=”https://wordpress.stackexchange.com/questions/6277/%1$s” title=”%2$s” rel=”bookmark”><span class=”entry-date”>%3$s</span></a>’, get_permalink(), esc_attr( … Read more

How to replace the twentyten image header with my flash banner?

A child theme is definitely the way to go for the reason you outlined: upgradability. To start with, here is the documentation for creating child themes: http://codex.wordpress.org/Child_Themes You’ll want to create the child theme directory and edit the style.css file as described in the Child Theme documentation link above. After that, simply copy the header.php … Read more

update = remove code

At the moment, WordPress replaces core files when it updates. This will change in the future, but for now all core files get replaced, i.e. every file that comes with WordPress. This includes the default twenty ten theme. If you modify twenty ten you should save your modified theme with a different name. To do … Read more

I want to add a class to main div on a template. how can I do that?

You’re probably looking for something like this: <?php function add_classes_to_body_class($classes) { // make sure ‘page-template.php’ matches your template name if ( is_page_template(‘page-template.php’) ) { $classes[] = ‘main’; } return $classes; } add_filter( ‘body_class’, ‘add_classes_to_body_class’ ); ?> make sure you add body_class() into your markup. Traditionally it would be in your body tag like so. <body … Read more