How To Remove Calendar And User Icon For PR News Theme WordPress


For those of you who are using PR News theme and do not like having the calendar and author icons below your blog post, this is how you remove them.

remove calendar and user icon of pr news theme wordpress

Remove Calendar And User Icon PR News Theme


It is very easy to get rid or hide these two unnecessary and obstructive icons.

1. Go to post-content.php.

2. Look for this set of code. The two section of code that need to be customized are highlighted in yellow color as shown below:

<div class="pull-right"><?php edit_post_link(__('Edit', 'prnews'),'<i class="icon-pencil"></i> ',''); ?></div>
        <div class="pull-left"><i class="icon-calendar"></i> <?php echo get_the_date();?> &nbsp; <i class="icon-user"></i> <?php the_author_posts_link(); ?></div>


3. You can delete them or comment them out. Comment means to hide them.

4. To completely remove or delete the calendar and user icons, remove the two section of code as shown above. 

Now you code should look like this.

<div class="pull-right"><?php edit_post_link(__('Edit', 'prnews'),'<i class="icon-pencil"></i> ',''); ?></div>
        <div class="pull-left"> <?php echo get_the_date();?> &nbsp;  <?php the_author_posts_link(); ?></div>


5. Then click Update File button.

6. If you do not want to delete them, you can comment them or hide them from the browser, you add these symbols as indicated in red color.

<div class="pull-right"><?php edit_post_link(__('Edit', 'prnews'),'<i class="icon-pencil"></i> ',''); ?></div>
        <div class="pull-left"><!--<i class="icon-calendar"></i>--> <?php echo get_the_date();?> &nbsp; <!--<i class="icon-user"></i>--> <?php the_author_posts_link(); ?></div>


7. Click Update File button.

Note: If you want to add the word By: before your name, you just add the word By: indicated in red color as shown below:

<div class="pull-right"><?php edit_post_link(__('Edit', 'prnews'),'<i class="icon-pencil"></i> ',''); ?></div>
        <div class="pull-left"><!--<i class="icon-calendar"></i>--> <?php echo get_the_date();?> &nbsp; <!--<i class="icon-user"></i>-->By: <?php the_author_posts_link(); ?></div>


Written by: Kher Cheng Guan