Gravatar Problem / Broke my wordpress?
-
Hello,
I have a severe problem which I have no idea how to fix.
I was trying something just as simple as creating a Gravatar Icon for myself and it appears that my wordpress does not work anymore…!
I cannot log into wordpress or even view my webpage anymore.
Quick rundown:
I went to this page to see the steps to make my Gravatar: http://codex.wordpress.org/How_to_Use_Gravatars_in_WordPress
I got to this step:
Create a Custom Default Avatar
If you don’t want to use any of the default images for users not registered with Gravatar, you can easily add your own by adding a filter to the avatar_defaults hook.After uploading the new image to your theme files, add this to your theme’s function.php file:
<?php
add_filter( ‘avatar_defaults’, ‘new_default_avatar’ );function new_default_avatar ( $avatar_defaults ) {
//Set the URL where the image file for your avatar is located
$new_avatar_url = get_bloginfo( ‘template_directory’ ) . ‘/images/new_default_avatar.png’;
//Set the text that will appear to the right of your avatar in Settings>>Discussion
$avatar_defaults[$new_avatar_url] = ‘Your New Default Avatar’;
return $avatar_defaults;
}
?>——–
Now this is where I made my fatal mistake. I copied and pasted the above code into the appropriate spot, but before setting my url and so on, I hit save.
So now my wordpress is busted. Is there a way to fix this??
Any help is greatly appreciated!!!
Thanks so much,
Web Design Noob 🙁
The topic ‘Gravatar Problem / Broke my wordpress?’ is closed to new replies.