• Resolved Ncastro340

    (@ncastro340)


    I hope this is the correct place to post this question, either way I need an answer.

    I have been trying to remove the “posted on” author/date for a while now, but with no luck.

    I see both the “posted on” & “posted in” functions in functions.php, but whenever I tamper with/remove the code:
    printf( __( '<span>Posted on</span> %2$s <span>by</span> %3$s', 'twentyten' ),
    My site fails to load? I do not understand where i am going wrong.
    If i remove this line, shouldn’t the author/date be removed as well?
    Can someone please enlighten me
    ….ease my struggles

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try just using:

    function twentyten_posted_on() {
    }
    Thread Starter Ncastro340

    (@ncastro340)

    I removed everything within the curly brackets and the result was exactly as I wanted..
    thank you, thank you, and thank you again

    You;re very welcome. Just be aware that if you upgrade the theme, you will have to repeat this step again. The best way to avoid this would be to create a very simple child theme of TwentyTen that contains just a style.css file (importing the parent stylesheet) and a functions.php file containing your empty function.

    Thanks.. I was able to remove them from the homepage of my photo blog. But they are showing on the single post page.. Is there a way to remove them from there also?

    Remove this bit of code from Single Post (single.php):

    <div class="entry-meta">
    <?php twentyten_posted_on(); ?>
    </div><!-- .entry-meta -->

    I’m working from WAMP. I found the single.php file and deleted this code like said above. I then saved the file and reloaded my page. Date is still there. What am I doing wrong?

    Hi, I am using the Twenty Ten theme with the Metric Child theme and am desperately trying to remove the post date/time from every post on my site. I tried commenting out the code for function twentyten_posted_on(), also commented out the <div class=”entry-meta”> code (except that for me it does not display in the single.php file, but rather in the loop-single.php file), but date stamp is still showing.

    I also tried the Date Exclusion plug in, added get_the_date and get_the_time to its code, but that does not work either.

    Using Word Press 3.1.3.

    Any help is greatly appreciated.

    After playing around just a little more, I found that by simply editing the style.css for the Child theme I was able to hide the post date stamp.

    In style.css (for the Child theme), I commented out all the formatting for .post-info, and added line display: none

    This does not however affect the default sorting so new posts will still appear first, but that can be simply overcome by changing the date prior to posting.

    Hope that helps others!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Twenty Ten: Remove "posted on" Author/Date!!’ is closed to new replies.