Title: Parse error: syntax error, unexpected &#8216;function&#8217; (T_FUNCTION) in /home/thereddo
Last modified: January 14, 2017

---

# Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/thereddo

 *  Resolved [Kimbert](https://wordpress.org/support/users/kimbert/)
 * (@kimbert)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-function-t_function-in-homethereddo/)
 * Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/thereddonv/
   www/wp-content/themes/zerif-lite/inc/jetpack.php on line 1
 * after trying to update my theme on my wp dashboard, I got this error.
    and my
   site is not showing at all
 * can i send this file to you?
 * thank you
    K

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

 *  Thread Starter [Kimbert](https://wordpress.org/support/users/kimbert/)
 * (@kimbert)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-function-t_function-in-homethereddo/#post-8654741)
 * function zerif_jetpack_setup() {
 *  add_theme_support( ‘infinite-scroll’, array(
 *  ‘container’ => ‘main’,
 *  ‘footer’ => ‘page’,
 *  ) );
 * this is the function in that file? should it be content instead of main?
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [9 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-function-t_function-in-homethereddo/#post-8661830)
 * The problem is indeed caused by your theme; while the function you posted above
   appears to be correct, the problem is most likely caused by other elements you
   may have added above and below this function.
 * Could you try to replace that file with the same file from a fresh installation
   of the Zerif theme? That should help.
 * If you continue to experience issues, I would recommend that you post in the 
   theme support forums for help:
    [https://wordpress.org/support/theme/zerif-lite/](https://wordpress.org/support/theme/zerif-lite/)
 * I hope this helps.

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

The topic ‘Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/
thereddo’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-function-t_function-in-homethereddo/#post-8661830)
 * Status: resolved