Skip to:
Content
Pages
Categories
Search
Top
Bottom

Overwrite avatar size from bp-theme function

  • Avatar of Nazieb
    Nazieb
    Participant

    @nazieb

    Hello,

    I’m currently creating a Buddypress theme and find that the default avatar size is too small. I’ve tried to put a filter in my functions.php file to overwrite the defaut CORE_AVATAR_V1_W constant.

    But it seems that my function is never called. The value of CORE_AVATAR_V1_W still remain as the default.

    Anybody knows another way to do this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • you could always just do this with some css… save you some bandwidth =)

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    Try placing your function in bp-custom.php. If that file does not exist, create it and place your function code there. This file should be placed in /plugins/. It will be loaded before anything else–see bp-core.php line 10 and 11.

    Avatar of Nazieb
    Nazieb
    Participant

    @nazieb

    Thanks Jeff.. It really works..

    Unfortunately it’ll make a double effort for the theme user..

    But, I think it’s no problem for them.. :)

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.