WordPress.org

Ready to get started?Download WordPress

Forums

Author Avatars List
[resolved] Widget Title Doesn't Look Like My Other Widget Titles (8 posts)

  1. ultramalcolm
    Member
    Posted 8 months ago #

    The formatting of the title in the sidebar widget isn't matching my other titles. The text is overlapping the background, rather than blocking it out. Take a look: http://bit.ly/sBU52q

    http://wordpress.org/plugins/author-avatars/

  2. Paul Bearne
    Member
    Plugin Author

    Posted 8 months ago #

    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

  3. Paul Bearne
    Member
    Plugin Author

    Posted 8 months ago #

    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

  4. ultramalcolm
    Member
    Posted 8 months ago #

    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.

  5. Paul Bearne
    Member
    Plugin Author

    Posted 8 months ago #

    thank you for testing

    I have spotted a silly mistake in the code change please retry :-)

    not sure why the avatar re-odered

  6. ultramalcolm
    Member
    Posted 8 months ago #

    Yes, working perfectly! Thank you so much!

  7. Paul Bearne
    Member
    Plugin Author

    Posted 8 months ago #

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

    .widget_author_avatars .user{
    float:left;
    width: 80px;
    height: 80px;
    float: left;
    }
  8. ultramalcolm
    Member
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic