Title: Problem functions.php
Last modified: August 20, 2016

---

# Problem functions.php

 *  [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * (@jerome2011)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/)
 * Hi,
    ** just wanted to change my default gravatar to my site by adding following
   code to my functions.php file: ( ———————————
 *     ```
       add_filter( 'avatar_defaults', 'newgravatar' );  
   
       function newgravatar ($avatar_defaults) {
           $myavatar = get_bloginfo('template_directory') . '/images/buildinternet-gravatar.jpg';
           $avatar_defaults[$myavatar] = "Build Internet";
           return $avatar_defaults;
       }
       ```
   
 * ———————————
 * _[Code moderated: please ensure that your code is enclosed in backticks (`) or
   use the code button.]_
 * **looks like a did something wrong because when I updated the file I got a white
   screen and I can’t access my website anymore.Did I deleted something or…? The
   theme I’m using is Workaholic – v 3.0.5.**
 * I already downldd the theme again and tried to upload the new functions.php file
   back to my website but nothing changes…
 * Below is my screwed up funtions.php file (can any of you see a problem with it?
   I think the fault must be in the lines at the end):
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

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

 *  [Hasan](https://wordpress.org/support/users/chevg8/)
 * (@chevg8)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/#post-2390017)
 * once you reupload the original functions.php clear your cache and try loading
   the website it should load up fine.
 *  Thread Starter [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * (@jerome2011)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/#post-2390021)
 * Thanks for the reply, but this does not work, also tried on other computer but
   still white screen when I try to access website (www.major-jom.be). Is there 
   something in the code that I deleted?
    => asking this because I am not sure that
   my back-up funtions.php is the same as the old one (is from newer version of 
   theme…).
 * **Thanks for any assistance!**
 *  [Hasan](https://wordpress.org/support/users/chevg8/)
 * (@chevg8)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/#post-2390023)
 * im having a look at your functions.php , but just to let you know your website
   is loading fine.
 *  Thread Starter [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * (@jerome2011)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/#post-2390027)
 * So strange… it’s loading fine indeed now on my computer (Firefox and IE). But
   when I try another computer (IE) he will not run…
 *  [Hasan](https://wordpress.org/support/users/chevg8/)
 * (@chevg8)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/#post-2390029)
 * loading fine on FF IE and Chrome
 *  Thread Starter [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * (@jerome2011)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/#post-2390033)
 * Ok… now I see it also => I can open him if I put [http://www.major-jom.be](http://www.major-jom.be),
   NOT when I put in major-jom.be without the ‘www.’. But this should be a hosting
   issue no?
 * Anyway many thanks for the help!

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

The topic ‘Problem functions.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/problem-functionsphp/#post-2390033)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
