TwentyTwelve – move entry meta date to top of post
-
How do I pick apart the meta info in Twenty Twelve?
I have found it in functions.php but have little idea how to change it.I have added this to child functions.php:
if ( ! function_exists( 'twentytwelve_entry_meta_top' ) ) : function twentytwelve_entry_meta_top() { $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } endif;
And I have added this (crude yes) to just below the final header tag in content.php. I have also added the css class.
<footer class="entry-meta-top"> <?php twentytwelve_entry_meta_top(); ?> </footer>
Nothing happens, no errors, but no date at the top either.
I have figured out here how to move the whole line above the content, but that isn’t really what I would like to do.
I want the TITLE of post and then the DATE one line below and to the the right.
And I want the posted in, tagged, and edit below the content. (where it already is)Any help will be appreciated. Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘TwentyTwelve – move entry meta date to top of post’ is closed to new replies.