Title: Themeisle’s PHP code has an error
Last modified: May 11, 2023

---

# Themeisle’s PHP code has an error

 *  Resolved [lauriepk](https://wordpress.org/support/users/lauriepk/)
 * (@lauriepk)
 * [3 years ago](https://wordpress.org/support/topic/themeisles-php-code-has-an-error/)
 * According to Themeisle’s documentation, I should be able to move the Add a Reply
   box up, so it’s above the existing comments (see [https://docs.themeisle.com/article/1137-how-to-display-the-comment-box-above-the-comments-in-neve](https://docs.themeisle.com/article/1137-how-to-display-the-comment-box-above-the-comments-in-neve)).
 * However, I get this error when I add Themeisle’s code to my Child Funtions file:
 * “Your PHP code changes were rolled back due to an error on line 38 of file wp-
   content/themes/child-neve/functions.php. Please fix and try saving again.
   syntax
   error, unexpected ‘}’, expecting end of file”
 * How do I fix this, please?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthemeisles-php-code-has-an-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/)
 * (@plantprogrammer)
 * [3 years ago](https://wordpress.org/support/topic/themeisles-php-code-has-an-error/#post-16734745)
 * Hey, lauriepk, I’m another Neve user.
 * I tried copying and pasting that code and I get no errors.
 * I’d try copy and pasting the code again to see if it was an issue with the copy
   and paste.
 *  [Kush](https://wordpress.org/support/users/kushnamdev/)
 * (@kushnamdev)
 * [3 years ago](https://wordpress.org/support/topic/themeisles-php-code-has-an-error/#post-16736283)
 * Hey [@lauriepk](https://wordpress.org/support/users/lauriepk/)
 * Thank you for using Neve and reaching out.
 * Yes, it appears the error was due to some mistake in copy paste of the code as
   it says in the error as well that it is due to “}”. Can you try to use the same
   code again?
 * Let us know how it goes.
 * Thank you and have a great day!
 *  Thread Starter [lauriepk](https://wordpress.org/support/users/lauriepk/)
 * (@lauriepk)
 * [3 years ago](https://wordpress.org/support/topic/themeisles-php-code-has-an-error/#post-16736429)
 * Why isn’t this working for me? I just don’t get it. Neve Child theme is active.
   I’m copying and pasting into the Child’s functions.php file (which has no code
   but this)…what am I don’t wrong?
 *  Thread Starter [lauriepk](https://wordpress.org/support/users/lauriepk/)
 * (@lauriepk)
 * [3 years ago](https://wordpress.org/support/topic/themeisles-php-code-has-an-error/#post-16736450)
 * I figured out the problem! In my Child functions.php the following code was missing.
   When I added it to the code provided by ThemeIsle, the file saved correctly and
   the result was perfect.
 * Thank you so much 🙂
 *     ```wp-block-code
       <?php
   
       if ( ! defined( 'ABSPATH' ) ) {exit;}if ( ! function_exists( 'neve_child_load_css' ) ):/*** Load CSS file.*/function neve_child_load_css() {wp_enqueue_style( 'neve-child-style', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( 'neve-style' ), NEVE_VERSION );}endif;add_action( 'wp_enqueue_scripts', 'neve_child_load_css', 20 );
       ```
   
 *  [luciamarinescu](https://wordpress.org/support/users/luciamarinescu/)
 * (@luciamarinescu)
 * [3 years ago](https://wordpress.org/support/topic/themeisles-php-code-has-an-error/#post-16736787)
 * We’re glad to hear you managed to fix the issue!

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

The topic ‘Themeisle’s PHP code has an error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/neve/4.2.4/screenshot.png)
 * Neve
 * [Support Threads](https://wordpress.org/support/theme/neve/)
 * [Active Topics](https://wordpress.org/support/theme/neve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/neve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/neve/reviews/)

## Tags

 * [themeisle](https://wordpress.org/support/topic-tag/themeisle/)

 * 5 replies
 * 4 participants
 * Last reply from: [luciamarinescu](https://wordpress.org/support/users/luciamarinescu/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/themeisles-php-code-has-an-error/#post-16736787)
 * Status: resolved