• I’d like to change the post footer information in my Twenty Twelve child theme. Right now it says, “This entry was posted in Children on June 18, 2013.” I’d like for it to say, “Posted by Carrie”
    I’d also like to add the date of the post underneath the post title.

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is a little complicated because the entry date is baked into a function in the theme’s function.php file and you also need to modify the content.php file.

    I highly recommend creating a child theme before you make any of these changes. See this link for more info: http://codex.wordpress.org/Child_Themes

    First, to get the date below the title, I recommend amending the twentytwelve_entry_meta function in the function.php file. From lines 360 to 364, delete everything in printf( ); except for $date

    Now nothing but the date will show when you call the twentytwelve_entry_meta function.

    Next, you’ll need to add the twentytwelve_entry_meta function to the content.php file in order to display the date. I suggest adding it to line 26 in order to place it below the title.

    The next step is to add <p>Posted By Carrie</p> to line 44 of the content.php file, directly after the <footer class="entry-meta"> line. Then comment out everything from line 45 down to line 54 right before the `<!– .author-avatar –>’ comment.

    This is pretty complicated if you aren’t familiar with PHP or WordPress theme files, so let me know if you need any more details.

    Hi Carrie,
    Kevin is right, this is complicated if you aren’t familiar with PHP. I would like to suggest you for copying the codes that you’d change here. So, the others member can help you with the right answer.

    [ Signature moderated. If you want to help then do so in a way that does not spam the forums. If you continue to use that signature then all of your replies will be deleted. ]

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @putranakal? Please read the note attached to your post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Twenty Twelve Post title/footer change’ is closed to new replies.