• Resolved lauriepk

    (@lauriepk)


    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?).

    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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    (@kushnamdev)

    Hey @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

    (@lauriepk)

    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

    (@lauriepk)

    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 ??

    <?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 );

    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.