• Resolved katenoise

    (@katenoise)


    Hello!
    I’m a newbie! I love Spun, it’s such a beautiful theme! I’m modifying it a bit to act as an organization site instead of a blog per se. Can anyone tell me how to remove the date, time and author stamp from my posts?
    Thanks Much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Not familiar with that particular theme, but if its going to be on a page that would normally be intended for a single post, then you need to go and edit the single.php file. Somewhere in there will be a line that says something like :
    get_the_date( $d );
    the_date (m, Y);
    the_time(m, d, Y)
    or something like that, remove that to get rid of the date, and one that will look similar for the author, so:
    the_author_posts_link()
    the_author()
    Again, remove that part to get rid of the author name

    Thread Starter katenoise

    (@katenoise)

    Thanks For answering! It looked a little different, but I was able to find it and it worked! most helpful! Thank you!

    I figured it out:

    1. Go to Editor.
    2. Edit content-single.php
    3. Find this:

    <div class=”entry-meta-wrapper”>
    <span class=”post-date”>
    <?php spun_posted_on(); ?>
    </span>

    <?php
    /* translators: used between list items, there is a space after the comma */
    $tags_list = get_the_tag_list( ”, __( ‘, ‘, ‘spun’ ) );
    if ( $tags_list ) :
    ?>

    <span class=”tags-links”>
    <?php printf( __( ‘%1$s’, ‘spun’ ), $tags_list ); ?>
    </span>
    <?php endif; // End if $tags_list ?>

    <?php edit_post_link( __( ‘Edit’, ‘spun’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
    </div>

    4. Delete it.

    Thread Starter katenoise

    (@katenoise)

    Cool! I had only deleted part of that snippet, so super helpful to know I need to delete the whole thing! Thanks!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hi guys, just in case you weren’t aware:
    If you modify the original theme files without creating a Child Theme your changes will be erased when the theme updates.

    So I just won’t update the theme
    Why not just create a Child Theme? Once created all you have to do to modify a PHP file is to copy it from the theme and paste it into your Child Theme folder. Then modify it from within your Child Theme folder and your changes won’t be erased when the theme updates.

    @kate, I wanted to delete all information (Author, date, etc.) from the bottom of my posts, so keep in mind that deleting that chunk of code will delete all information that would normally appear.

    Thread Starter katenoise

    (@katenoise)

    Got it, thanks much!

    And yes I am using a child theme for this theme!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Spun theme -how do I remove time, date and author stamp from posts?’ is closed to new replies.