You can find the fatal error message in file system, in error.log files. It may be on root directory or in theme directories.
You can find the fatal error message in file system, in error.log files. It may be on root directory or in theme directories.
When I put the code in via FTP I get this error: Parse error: syntax error, unexpected 'if' (T_IF) in path/theme/functions.php on line 4
You can find the fatal error message in file system, in error.log files. It may be on root directory or in theme directories.
I gave the exact code in my functions file along with my error to my theme support. They said there's nothing in there that would be conflicting with their theme. They've told me something in the code for the plugin is conflicting on your side.
The code is correct, there is no syntax error in this code. You can check it here:
You also can disable wpForo plugin before adding this code to see that the problem doesn't have any relation to wpForo.
I think something wrong with line-berks and spaces of your editor. try to add extra line-breaks after each line. I have no other clue, the code works perfect on all tested websites and on other users websites. You can install a fresh WordPress and test it.
Also make sure you use correct functions.php file. Try other themes too...