• Resolved nettal365

    (@nettal365)


    Dear all,

    I changed something in my child theme functions.php and now I get this error message:

    Parse error: syntax error, unexpected ‘}’, expecting end of file in /www/htdocs/w0152578/laurin-versichert.at/wp-content/themes/insurance-ancora-child/functions.php on line 14

    I found already solved topics to this, so I entered my FTP and would kindly ask, if when I deleted the inserted part there will it be solved then?

    My code looks like this:
    <?php
    /**
    * Child-Theme functions and definitions
    */

    function new_excerpt_more($more) {
    global $post;
    return ‘ ID) . ‘”>Read More141212122 »‘; //Change to suit your needs
    }

    add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

    }
    .top_panel_over .top_panel_wrap {
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:8000;

    ?>

    If I delete now that part:

    }
    .top_panel_over .top_panel_wrap {
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:8000;

    will it be solved then or can I destroy sth? I would unlikely loose all the pages and settings I already made on my website. 🙁

    Thank you so much in advance guys!!
    Regards, Anni

Viewing 6 replies - 1 through 6 (of 6 total)
  • Please send attach the file to https://pastebin.com/ and share the URL here.

    Thread Starter nettal365

    (@nettal365)

    Dear Rajesh, do you mean like this? I am not familiar with pastebin, sorry

    https://pastebin.com/NjCyjrhN

    You placed CSS inside your functions.php

    This is CSS and needs to go in your css file:

    .top_panel_over .top_panel_wrap {
    position:absolute;
    top:0;
    left:0;
    right:0;
    z-index:8000;
    }

    Thread Starter nettal365

    (@nettal365)

    Ohh I see, thanks for the explanation!

    Will it be done if I remove that part from the functions.php on my FTP Server?

    Please copy me exactly which part I need to remove Hudson. In your post above there is another } at the end which I don’t have in the code right now.

    Thank you so much!

    Thread Starter nettal365

    (@nettal365)

    I renamed the functions.php in the child, so it took the info from the parents functions.php (then wordpress worked again) and uploaded a saved functions.php to the child directory.

    Problem solved, thanks!

    Remember to put CSS is the .css file and only PHP functions in the functions.php file

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

The topic ‘Parse error: syntax error, unexpected ‘}’,’ is closed to new replies.