WordPress.org

Support

Support » Plugins and Hacks » Author Avatars List » [Resolved] Widget Title Doesn't Look Like My Other Widget Titles

[Resolved] Widget Title Doesn't Look Like My Other Widget Titles

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Paul Bearne

    @pbearne

    I see what you mean

    it looks like the the theme is added to the standard widget a bit of extra html

    <span class=”widget-headline”>Also Sponsored By</span>
    I would guess using the widget title filter

    which I hadn’t added to the plugin 🙁

    I will add in the next version

    but in the meantime

    add this line

    $title = apply_filters(‘widget_title’, empty($instance[‘title’]) ? __(‘Meta’) : $instance[‘title’], $instance, $this->id_base);
    in author-avatars/lib/AuthorAvatarsWidget.class.php

    at line 95

    94 extract($args, EXTR_SKIP);
    94
    95 // build the widget html
    96 echo $before_widget;
    97 echo $before_title . $instance[‘title’] . $after_title;

    and believe it will work

    give me a couple of days and it will be added and tested

    Paul

    Plugin Author Paul Bearne

    @pbearne

    Hi Malcolm

    I have added this code change into the master version

    you can download it here https://github.com/pbearne/wp-author-avatars/archive/master.zip

    Please do install this and let me know if I have fixed it?

    Paul

    ultramalcolm

    @ultramalcolm

    That update didn’t seem to fix the issue…and it made the avatars stack vertically! I have reverted to the original version of the file.

    Plugin Author Paul Bearne

    @pbearne

    thank you for testing

    I have spotted a silly mistake in the code change please retry 🙂

    not sure why the avatar re-odered

    ultramalcolm

    @ultramalcolm

    Yes, working perfectly! Thank you so much!

    Plugin Author Paul Bearne

    @pbearne

    you can fix the image stacking with a little css – try this

    .widget_author_avatars .user{
    float:left;
    width: 80px;
    height: 80px;
    float: left;
    }
    ultramalcolm

    @ultramalcolm

    That doesn’t seem to be having exactly the desired effect…the avatars are not resizing, and there needs to be some padding…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Widget Title Doesn't Look Like My Other Widget Titles’ is closed to new replies.
Skip to toolbar