• Resolved BradHarperMusic

    (@bradharpermusic)


    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 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you have a backup of that functions file, you’re going to need to replace the edited one on your hosting account server with the backup copy (or a fresh, unedited one if no backup is available). You can use an FTP client (like FileZilla), or your web-host’s cPanel or file manager to do this. File manager is easiest if this is new to you.

    You’ll find the functions.php file in wp-content/themes/'your-active-theme'.

    Thread Starter BradHarperMusic

    (@bradharpermusic)

    Thanks much, Bill.

    I ended up figuring it out after hours of internet searching last night,

    Got a FTP app called Cyberduck and was able to edit the file.

    Thanks for taking the time to respond!

    Glad you got this worked out! Go ahead and mark this as resolved if you would. And, you’re welcome!

    Thread Starter BradHarperMusic

    (@bradharpermusic)

    Done.

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

The topic ‘Gravatar Problem / Broke my wordpress?’ is closed to new replies.