Title: My site down after I revised function.php
Last modified: March 28, 2017

---

# My site down after I revised function.php

 *  [ngantran](https://wordpress.org/support/users/ngantran/)
 * (@ngantran)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/my-site-down-after-i-revised-function-php/)
 * Hi everyone.
 * I made a big mistake that to edit the file function.php directly.
 * Got this message after doing so: Parse error: syntax error, unexpected ‘return’(
   T_RETURN) in /home/nconti5/public_html/wp-content/themes/motif/functions.php 
   on line 247
 * Here is the line 247
    } add_action( ‘wp_enqueue_scripts’, ‘motif_scripts_styles’);
 * /**
    * Enqueue Google fonts style to admin screen for custom header display. */
   function motif_admin_fonts() { wp_enqueue_style( ‘motif-fonts’, motif_fonts_url(),
   array(), null ); } add_action( ‘admin_print_scripts-appearance_page_custom-header’,‘
   motif_admin_fonts’ );
 * /**
    * Custom template tags for this theme. */ require get_template_directory().‘/
   inc/template-tags.php’;
 * May anybody let me know where I did wrong?
 * Thanks very much

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

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/my-site-down-after-i-revised-function-php/#post-8963827)
 * Depending on how much you’ve edited, it might be easier to download your theme
   again and then upload `functions.php` to the appropriate place. Also, it’s not
   recommended to edit the theme’s files directly, as you’ll lose those changes 
   if the theme is ever updated in the future. It’s best to make a [child theme](https://developer.wordpress.org/themes/advanced-topics/child-themes/)
   instead.
 * After all that, if you still need help, could you post a complete copy of your
   current `functions.php` to [Pastebin](http://pastebin.com/) and post the link
   here?
 *  Thread Starter [ngantran](https://wordpress.org/support/users/ngantran/)
 * (@ngantran)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/my-site-down-after-i-revised-function-php/#post-8963903)
 * [@stephencottontail](https://wordpress.org/support/users/stephencottontail/):
   thank you very much. I uploaded the file and it works. Well, I will learn how
   to use child theme right away 😐
 *  [mdshak](https://wordpress.org/support/users/mdshak/)
 * (@mdshak)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/my-site-down-after-i-revised-function-php/#post-8964127)
 * Hi,
    Glad 🙂 to know this. Thanks Mohammad

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

The topic ‘My site down after I revised function.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [mdshak](https://wordpress.org/support/users/mdshak/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/my-site-down-after-i-revised-function-php/#post-8964127)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
