Skip to:
Content
Pages
Categories
Search
Top
Bottom

sidbar login avatar size


  • butterzeugs
    Participant

    @butterzeugs

    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

    @butterzeugs

    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

    @robin-w

    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

    @butterzeugs

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


    Robin W
    Moderator

    @robin-w

    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

    @butterzeugs

    thx but how can i change the size of it ?

    i cant find some code where i can change it


    Robin W
    Moderator

    @robin-w

    go into

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

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


    butterzeugs
    Participant

    @butterzeugs

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

    any aother ideas ?


    Robin W
    Moderator

    @robin-w

    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

    @butterzeugs

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

    maybe some other plugin i have to change the code ?


    Robin W
    Moderator

    @robin-w

    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

    @butterzeugs

    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

    @robkk

    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

    @butterzeugs

    Hm, no still not changing :/


    Robkk
    Moderator

    @robkk

    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