Skip to:
Content
Pages
Categories
Search
Top
Bottom

sidbar login avatar size

  • @butterzeugs

    Participant

    i tryed to change the size of the sindbar login avatar img.

    i put in the theme (hueman theme) funcion.php this:

    add_filter('sidebar_login_widget_avatar_size','new_login_avatar_size');
    function new_login_avatar_size(){
        return 80;
    }

    i also tryed this code:

    add_filter('sidebar_login_widget_avatar_size', 80);

    but it is still the size of 38 pix and not 80 pix ?

    what did i do wrong ?

Viewing 14 replies - 1 through 14 (of 14 total)
  • @butterzeugs

    Participant

    can someone plz help me ? i just try to change the size from the login sidebar avatar. i want it a little bit bigger.

    @robin-w

    Moderator

    less than 15 hours at a weekend for a response – whatever job you do must offer amazing service if hat’s what you expect for free !

    @butterzeugs

    Participant

    @Robin W did you try to help me ? i dont understand it 😉

    @robin-w

    Moderator

    The avatar size is hard coded into the login widget.

    see

    bbpress/includes/common/widgets.php

    around line 141

    You can change it directly in here, but keep a note of it, as it will be overwritten by upgrades. or if you have the skill, you could copy and create a new widget within your child theme

    @butterzeugs

    Participant

    thx but how can i change the size of it ?

    i cant find some code where i can change it

    @robin-w

    Moderator

    go into

    wp-content/plugins/bbpress/includes/common/widgets.php

    and edit line 141 to change ’40’ to whatever size you want.

    @butterzeugs

    Participant

    i did change it from 40 to 80 but it had no effect at all.

    any aother ideas ?

    @robin-w

    Moderator

    That code works exactly as described.

    please check that you have exited and re-entered your browser to clear
    that you aren’t running any caching software
    That you have only changed ’40’ to ’80’ and saved and uploaded the change

    @butterzeugs

    Participant

    i did it just like you sayed but still no effect 🙁

    maybe some other plugin i have to change the code ?

    @robin-w

    Moderator

    sorry, but if the code doesn’t work, the either you are doing something wrong, or something else is interfering.

    If you have a link to your site and a page showing the issue, I’ll take one further look.

    @butterzeugs

    Participant

    Here is the Link to my Site LINK

    and a Screenshot showing the Problem

    I just want to change the size of the avatar on the login sidebar widget a bit bigger.

    @robkk

    Moderator

    this CSS should work add !important edit the width/height the way you want it.

    .bbp-logged-in img.avatar {
      width: 80px!important;
      height: 80px!important;
    }

    @butterzeugs

    Participant

    Hm, no still not changing :/

    @robkk

    Moderator

    create an account for me just so i can see what it looks like logged in.

    make sure its just a subscriber/participant.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Skip to toolbar