Support » Theme: Twenty Ten » Customize "twentyten_posted_on" function for Date

  • Resolved IceyD


    Hi everyone!

    I’m trying to customize my first blog, and I’ve got a lot of things under control. In Blogger, I found a way to customize the position of the date, as well as add styling to each element of the date – the day, month, and year.

    I have no idea how to do that in the Twentyten theme though. Any help?
    Do I have to adjust the coding in function.php? Or just in loop.php?

    Here’s the ‘twentyten_posted_on’ function:

    function twentyten_posted_on() {
    	printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    			esc_attr( get_the_time() ),
    		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    			get_author_posts_url( get_the_author_meta( 'ID' ) ),
    			esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),

    Thank you for any help!

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Customize "twentyten_posted_on" function for Date’ is closed to new replies.