how do I remove "by admin, home, 0 comments" from my theme?

COBNETCKNN

Regular Member
Joined
Sep 3, 2015
Messages
205
Reaction score
62
hello there people... so as title says what should I do to remove those info from my posts on home page? I already disable comments in theme, but these info remained... I also tried those codes to add in "customization" but no luck, none of them work... I'm using ribbon lite teme and I don't know anything about coding, so picture below could be useful for someone to solve my problem :D thanks in advance...

this is what I want to remove below every post on my homepage...

EqNNHTm


this is how editor looks when I go to comments section...

1pFDk0J
 
hello there people... so as title says what should I do to remove those info from my posts on home page? I already disable comments in theme, but these info remained... I also tried those codes to add in "customization" but no luck, none of them work... I'm using ribbon lite teme and I don't know anything about coding, so picture below could be useful for someone to solve my problem :D thanks in advance...

this is what I want to remove below every post on my homepage...

EqNNHTm


this is how editor looks when I go to comments section...

1pFDk0J
Hi can you try removing this code from your single.php file line 94
Code:
<?php if($ribbon_lite_authorbox_section == '1') { ?>
                            <!-- Start Author Box -->
                            <div class="postauthor">
                                <h4><?php _e('About Author', 'ribbon-lite'); ?></h4>
                                <?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '85' );  } ?>
                                <h5><?php the_author_meta( 'nickname' ); ?></h5>
                                <p><?php the_author_meta('description') ?></p>
                            </div>
                            <!-- End Author Box -->
                        <?php }?>
 
It is way better to use CSS to "hide/remove" things, look here: CSS Layout - The display Property

Hide it:

Code:
.post-info {
  visibility: hidden;
}

Remove it:

Code:
.post-info {
  display: none;
}

Use the plugin Simple CSS and paste the code in it.
 
Last edited:
Hi can you try removing this code from your single.php file line 94
Code:
<?php if($ribbon_lite_authorbox_section == '1') { ?>
                            <!-- Start Author Box -->
                            <div class="postauthor">
                                <h4><?php _e('About Author', 'ribbon-lite'); ?></h4>
                                <?php if(function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '85' );  } ?>
                                <h5><?php the_author_meta( 'nickname' ); ?></h5>
                                <p><?php the_author_meta('description') ?></p>
                            </div>
                            <!-- End Author Box -->
                        <?php }?>

I don't know where to find this, guess I forgot to mention that I started using wordpress like month ago :D could you explain a little bit more sir?

It is way better to use CSS to "hide/remove" things, look here: CSS Layout - The display Property

already tried this but none of those codes work for this theme seems like...
 
I don't know where to find this, guess I forgot to mention that I started using wordpress like month ago :D could you explain a little bit more sir?
You an find this file in the sidebar of screenshot you posted above. Just scroll down in sidebar and you will find the single.php file.
 
Back
Top