[Plugin: Author Avatars List] list in widget (2 posts)

  1. paraksaber
    Posted 7 years ago #

    how i can put the the widget as list?

  2. Ben
    Posted 7 years ago #

    You can add the following code to your theme's functions.php to make the plugin render the list as a "html list" (instead of "html divs").

    // Change user list templates to use a list instead of divs
       function custom_aa_userlist_template($default) {
           return '<ul class="author-list">{users}</ul>';
       add_filter('aa_userlist_template', 'custom_aa_userlist_template');
       function custom_aa_user_template($default) {
           return '<li class="{class}">{user}</li>';
       add_filter('aa_user_template', 'custom_aa_user_template');

    ... and then add your own css styling to your theme's style.css for ul.author-list and ul.author-list li.

    Does this answer your question? (If not please clarify and provide a bit more context & detail!)

Topic Closed

This topic has been closed to new replies.

About this Topic