WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Ten: Remove "posted on" Author/Date!! (9 posts)

  1. Ncastro340
    Member
    Posted 3 years ago #

    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

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try just using:

    function twentyten_posted_on() {
    }
  3. Ncastro340
    Member
    Posted 3 years ago #

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

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  5. Gouri
    Member
    Posted 3 years ago #

    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?

  6. asianjoy
    Member
    Posted 3 years ago #

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

    <div class="entry-meta">
    <?php twentyten_posted_on(); ?>
    </div><!-- .entry-meta -->
  7. hankasawat
    Member
    Posted 3 years ago #

    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?

  8. eKasia
    Member
    Posted 2 years ago #

    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.

  9. eKasia
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.