WordPress.org

Ready to get started?Download WordPress

Forums

Removing "posted on" in the date and "posted in" in the tags text. (3 posts)

  1. turbosaurus
    Member
    Posted 8 months ago #

    I'm using the underscore theme, and have really only been playing with css and html. I've built a cover for each post and want to display the tags and the date posted without the text "Posted on" and "Tags". I haven't found the text in any of the html yet and not really sure where it is coming from. Any suggestions?
    Thanks!

    http://cl.ly/image/32380v0O1809

  2. Matt
    Member
    Posted 8 months ago #

    To remove "Posted on ", you'll need to edit template-tags.php (line 134) as follows:

    Original:
    <span class="posted-on">Posted on %1$s</span>

    Change to:
    <span class="posted-on">%1$s</span>

    To remove "Tags" I think you'll need to edit content.php (line 52) as follows:

    Original:
    <?php printf( __( 'Tagged %1$s', 'underscores-test' ), $tags_list ); ?>

    Change to:
    <?php printf( __( '%1$s', 'underscores-test' ), $tags_list ); ?>

  3. turbosaurus
    Member
    Posted 8 months ago #

    Boom, thanks so much!

Reply

You must log in to post.

About this Topic