Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5221

    In the BrightBox Latest News Widget (newsbox), how can I change the display picture to call the author avatar instead of the featured image in the post?

    #49298

    Hey,

    I can give you hints for this modification:

    In brightboxframeworkphpclass-framework-widgets.php search for

    echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>";
    echo "<span class='news-thumb'>";
    echo $image;

    and replace

    echo $image;

    with any code you like. I.e. you can use this function: http://codex.wordpress.org/Function_Reference/get_avatar to retrieve the avatar. Before you need to get the author email, etc.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘BrightBox Latest News – show author avatar?’ is closed to new replies.