• Resolved alittlemk2

    (@alittlemk2)


    I copied and pasted a function into my function.php editor (bad idea). I was attempting to follow a tutorial on customizing the Jetpack ‘Related Posts’ plugin, but received this error:
    Parse error: syntax error, unexpected ‘}’ … on line 281

    I deleted the function, but still received the error despite there being an equal number of { and }. I opened up the .zip of my downloaded blog theme and directly copied and pasted the original function.php file but am still receiving the error.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Sounds like a bad tutorial.

    I opened up the .zip of my downloaded blog theme and directly copied and pasted the original function.php file but am still receiving the error.

    Did you do that through FTP? If not, how?

    Thread Starter alittlemk2

    (@alittlemk2)

    Sorry, I’m a little slow on the lingo, but my theme I purchased included all the separate documents in a file. So I opened the function.php on TextEditor and copied and pasted it into the function.php in Editor on WordPress.

    Should I have done something different?

    Thread Starter alittlemk2

    (@alittlemk2)

    Hey, Andrew – thank you for your help! I researched FTP and managed to fix the site. Definitely won’t be trying to edit that any time soon…

    • This reply was modified 8 years, 8 months ago by alittlemk2.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse Error: Unexpected ‘}’’ is closed to new replies.