Supreme theme listing avatar
This topic contains 14 replies, has 4 voices, and was last updated by Giri 8 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
September 19, 2017 at 10:48 pm #396528
Hello, on the Supreme theme when a listing is created by admin, the avatar that is showing for the listing owner is the facebook mystery avatar. How can I change that?
Thank you.
September 20, 2017 at 6:18 am #396550Hi Joy,
Could you give “userswp plugin” a try and see if it’s what you’re looking for? https://userswp.io/
Thanks!
September 20, 2017 at 6:22 am #396551Hello I am using userswp. But the listing avatar only changes if the listing is claimed.
September 20, 2017 at 6:33 am #396553Hi Joy,
Do you mean you want to change this even when the listing is not claimed? http://prntscr.com/gnceyo . If you are, check out this option http://prntscr.com/gncfcn and see if it helps.
Thanks!
September 20, 2017 at 4:57 pm #396613Upload an avatar for the Admin via UsersWP. If now you see the facebook avatar it is because you synced the admin account via social login…
September 20, 2017 at 8:06 pm #396643The avatar settings in WordPress does not help. The image that is being shown in the unclaimed listings in the supreme theme is from the theme – not wordpress.
@paolo, as I said, it works for a claimed listing. If a listing is created, then claimed(or claiming is disabled for a particular type), then the admin avatar appears. Otherwise, if the listing is not claimed, another image is shown. You can see it here: https://wpgeo.directory/supreme-directory/places/united-states/california/san-francisco/attractions/alcatraz-island/
How do I change that image? Thank you.
September 21, 2017 at 12:41 pm #396760Hi Joy,
When you connect to facebook it insert the facebook avatar image as avatar.
So you mean you would like to exclude the default facebook avatar?
September 21, 2017 at 12:43 pm #396761If you are talking about this avatar, then you need to replace that image with your default avatar in supreme.
This is the path
/wp-content/themes/supreme-directory/images/gravatar2.png
September 21, 2017 at 7:33 pm #396818Thanks @giri, this is the image I was talking about.
Is there a function that I can use to change this instead? It seems that it will be reset with each update using this method.
Thank you.
September 21, 2017 at 7:39 pm #396822I found this post. I’ll give this a try and let you know if it works:
https://wpgeodirectory.com/support/topic/lost-gravatar/#post-383593September 21, 2017 at 7:41 pm #396823Oops, nevermind. I see that this is for claimed listings…
September 22, 2017 at 2:42 pm #396953Hi Joy,
If you are talking about this image,
/wp-content/themes/supreme-directory/images/gravatar2.png
then your only option right now is to overwrite the image.
I can add a filter in the next version to override that image via hooks.
In the mean time please use overwrite option.
Thanks
September 22, 2017 at 2:48 pm #396955Ok I just modified the code.
Please make these changes and you should be fine.
File: /Users/giri/Sites/wordpress/wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php
In line 821 you will see this line.
https://github.com/mistergiri/supreme-directory/blob/master/inc/geodirectory-compatibility.php#L821$entry_author = '<img src="'.get_stylesheet_directory_uri() . "/images/gravatar2.png".'" height="100" width="100">';Replace that line with these two lines.
if (!defined('SD_DEFAULT_GRAVATAR_IMAGE')) define('SD_DEFAULT_GRAVATAR_IMAGE', get_stylesheet_directory_uri() . "/images/gravatar2.png"); $entry_author = '<img src="'.SD_DEFAULT_GRAVATAR_IMAGE.'" height="100" width="100">';Now all you have to do is that add this line in your wp-config.php file
define('SD_DEFAULT_GRAVATAR_IMAGE', 'http://your image url here');Thanks
September 22, 2017 at 9:22 pm #397010Thank you! It worked. 🙂
September 25, 2017 at 11:47 am #397228You are welcome 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket