Now in my wp-content/themes I have this folders:
- "twentyeleven" (with all the original files)
- "twentyeleven-child-theme" (my new-custom folder).
In this folder I have put 5 files:
style.css its equal to the original but I have just change that:
/*
Theme Name: Twenty Eleven (Child Theme)
and I have change the same line also in this files: editor-style.css, editor-style-rtl.css and rtl.css.
and in functions.php I have just put your code:
<?php
function twentyeleven_posted_on() {
printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>', 'twentyeleven' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
);
}
?>
I have clean my cache browser and go in admin pannel, but I can't see my custom theme. Just "Twenty Eleven 1.2" (the original) like default.