• Resolved AlpineAthena

    (@alpineathena)


    Hi,

    So I added a few lines of code at the bottom of my custom_function.php document. It didn’t do what I wanted it to do, so I deleted it. It was supposed to add a [read more] at the end of my excerpt. I deleted those two lines of code that I added and now I get this message:

    Parse error: syntax error, unexpected ‘<‘ in /home1/alpinea1/public_html/wp-content/themes/thesis_18/custom/custom_functions.php on line 158

    Here is the area surrounding line 158:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    I counted down and line 158 should be”add_action(‘thesis_hook_before_post’, ‘thumbnailset’);” But I might be one or two lines off.

    I don’t want to reload the file since I’ve made a lot of changes to this document to get my website the way I want it.

    Could real use some help figuring out what is wrong with the code above.

    Thanks!

Viewing 1 replies (of 1 total)
  • [please use the pastebin https://pastebin.com/ if you need to post larger amounts of code;
    advantages:
    cleaner forum;
    line numbers with the code;
    syntax highlighting if you check the programming language (PHP);
    easier to read and reply with edits.

    if you post short amounts of code directly in the thread, please mark the code either with backticks (before and after the code – the character on the keyboard top left beside the number 1);
    or use the ‘code’ button – click once before writing/pasting code, then again after; or hightlight the code, and press the ‘code’ button once.]
    thank you ??

Viewing 1 replies (of 1 total)
  • The topic ‘Can't figure out where error is in code’ is closed to new replies.