I've never written php before so I'm trying to sort my way through with copying and pasting. I'm adding code to my functions.php to remove the metadata except the date from posts and to add a favicon, but none of the changes that I make are being reflected. I'm sure that I'm just doing something wrong, but I can't figure out what it might be. This is my functions.php:
<?php
//
// Custom Child Theme Functions
//
//Remove Post Metadata except Post Date
function date_only() {
global $id, $post, $authordata;
$postmeta = '<div class="entry-meta">';
$postmeta .= '<span class="entry-date"><abbr class="published" title="';
$postmeta .= get_the_time(thematic_time_title()) . '">';
$postmeta .= get_the_time(thematic_time_display());
$postmeta .= '</abbr></span>';
$postmeta .= "</div><!-- .entry-meta -->\n";
return $postmeta;
}
add_filter('thematic_postheader_postmeta', 'date_only');
function childtheme_favicon() { ?>
<link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.ico">
<?php }
add_action('wp_head', 'childtheme_favicon');
?>
what dumb thing am I doing wrong?