Problem functions.php
-
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. Please use the pastebin]
- The topic ‘Problem functions.php’ is closed to new replies.