WordPress.org

Ready to get started?Download WordPress

Forums

Yoko
How to remove author and comment count? (5 posts)

  1. icup
    Member
    Posted 1 year ago #

    I'm working on a static website and don't need these. I already found the coding to delete to get rid of the timestamp thanks to this forum!

    http://wordpress.org/extend/themes/yoko/

  2. Mavan
    Member
    Posted 1 year ago #

    I too would like to know how to remove only the author from the Yoko theme. I am the only one who posts, so it is redundant to have everything say "by admin". I have a child theme, but don't know what code to delete/change. Hoping someone has an answer for you/us.

  3. boletski
    Member
    Posted 1 year ago #

    @icup - can you please post a link to the coding you found to delete the timestamp?

    Thanks!

  4. mondragonjulian
    Member
    Posted 1 year ago #

    @Mavan Check it out:

    Go to Appearance, Editor, content.php

    Under <div class="entry-details"> turn off the author
    <!-- <?php _e( 'by', 'yoko' ); ?> <?php the_author() ?><br/> -->

    Update File

    That will turn it off on the Main Page. To turn it off at the bottom of a blog post go to content-single.php

    <!-- <div class="author-info">
    		<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'yoko_author_bio_avatar_size', 70 ) ); ?>
    		<div class="author-description">
    		<h3><?php printf( __( 'Author: %s', 'yoko' ), "<a href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h3>
    		<p><?php the_author_meta( 'description' ); ?></p>
    		</div> -->

    I left the one on top of the blog post on to keep a signature.

  5. mondragonjulian
    Member
    Posted 1 year ago #

    I just found out that you get there is an extra </div> that you need to erase at the end of content-single.php if you don't, you will lose one of your sidebars

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags