This topic has 4 replies, 3 voices, and was last updated 9 years, 1 months ago ago by Jack Richardson
Hello is there any way to hide the author of the post in the “8 theme recent post widget”?
I have added it to the sidebar of the blog but i have a lot of contributors & don’t want everyone to know that?
Can i knock off the date & the author fron the attached? : http://prntscr.com/8une8u
trying to eradicate error messages!!!
Hello,
You need to comment out this code in \themes\woopress\framework\widgets.php file
<time class="date-event"><span class="number"><?php the_time('d'); ?></span> <?php the_time('M'); ?></time>
<?php _e('by', ETHEME_DOMAIN) ?> <strong><?php the_author(); ?></strong> <?php the_time(get_option('date_format')); ?>
Regards,
Robert Hall.
Im sorry Robert i have tried inserting that code like the below but it doesn’t seem to work for me?
/* <time class=”date-event”><span class=”number”><?php the_time(‘d’); ?></span> <?php the_time(‘M’); ?></time>
<?php _e(‘by’, ETHEME_DOMAIN) ?> <?php the_author(); ?> <?php the_time(get_option(‘date_format’)); ?> */
I would say i am doing it wrong but would appreciate any guidance.
Hello,
Please read here how to comment the code correctly:
https://codex.wordpress.org/Commenting_Code
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up