Edit post widget - by Andre - on WordPress WooCommerce support

This topic has 4 replies, 3 voices, and was last updated 9 years, 1 months ago ago by Jack Richardson

  • Avatar: andre@nuhouse.ie
    Andre
    Participant
    October 24, 2015 at 02:35

    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!!!

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 24, 2015 at 07:55

    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.

    Avatar: andre@nuhouse.ie
    Andre
    Participant
    October 26, 2015 at 22:41

    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’)); ?> */

    http://prntscr.com/8vommq

    I would say i am doing it wrong but would appreciate any guidance.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 27, 2015 at 08:29

    Hello,

    Please read here how to comment the code correctly:
    https://codex.wordpress.org/Commenting_Code

    Best regards,
    Jack Richardson.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.