# Setting Site Member's Profile Picture by Default?

**URL:** <https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973>\
**Category:** Ask the community\
**Tags:** wix-members-area, question, code\
**Created:** [January 8, 2022, 12:29am UTC](https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973 "2022-01-08T00:29:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![user5133](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/user5133/32/105455_2.png) [@user5133](https://forum.wixstudio.com/u/user5133)\
**Post date:** [February 17, 2025, 7:26pm UTC](https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973/2 "2025-02-17T19:26:53Z")

</div>

Did you find a way of doing this?

I found a thread from 2021 that suggests that it is possible…

> [@How can you make a default profile pictures that every member get when they sign up?](https://forum.wixstudio.com/t/how-can-you-make-a-default-profile-pictures-that-every-member-get-when-they-sign-up/35694/4):
>
> Hi there raised_hand_with_fingers_splayed I’m against assigning a default image for each site member, instead, on their profile pages, or anywhere else, before showing their picture, check whether they have a picture or not, and if they don’t, show the default picture. Example: const default\_image = 'wix:image://...'; return getUserProfile().then((profile) =\> { $w('#name').text = $w('#picture').tooltip = $w('#picture').alt = profile.name; $w('#picture').src = profile.picture || defa…

but I’m getting an error when I publish it saying

```
 `ReferenceError: getUserProfile is not defined`

```

This is the code that was on the thread…

```javascript

$w.onReady( **function** () {

**const** default_image = 'wix:image://v1/4c497b_98f0451b76d344f19f7b431300bef6e6~mv2.png/_.png#originWidth=400&originHeight=400';

**return** getUserProfile().then((profile) => {

$w('#name').text = $w('#picture').tooltip = $w('#picture').alt = profile.name;

$w('#picture').src = profile.picture || default_image;

})

});

```

---

_[View the full topic](https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973)._
