• Resolved kitsin

    (@kitsin)


    Hi

    I was trying to remove the “posted by admin comment” so I added the code below to the bottom of the functions.php

    .entry-meta { display: none; }

    After updating I received the following message:
    Parse error: syntax error, unexpected ‘.’ in /home/lkrjttwa/public_html/wp-content/themes/Gleam/functions.php on line 195

    I went back into functions and removed the code I added but the error persisted. Now I can no longer access the wordpress admin page at all. The error just keeps on showing. I’d really appreciate some help with this one. The theme I was using was Gleam if that helps.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • I added the code below to the bottom of the functions.php

    Why were you adding CSS to the bottom of a .php file?

    Switch to the default theme by renaming:

    wp-content/themes/Gleam

    to:

    wp-content/themes/Gleam-old

    using FTP or whatever file management application your host provides. Once you ghave access to your site again, delete the Gleam theme and re-upload it. Next time, do not edit the theme itself. Create child theme or install a custom CSS plugin.

    Thread Starter kitsin

    (@kitsin)

    Thanks for your reply. I’m new to wordpress and was following some advice I read about trying to get rid of the blog comments but I guess I did it wrong. Thank you for letting me know what to do in the future

    I followed what you said and renamed to
    wp-content/themes/Gleam-old

    It’s saying that the directory is now empty and when I try to relaunch the site the same error is appearing. Does it take some time to regain access after doing this?

    Thanks

    Re-upload a fresh, unpacked, copy of the Twenty Thirteen folder to wp-content/themes using FTP or whatever file management application your host provides.
    https://www.ads-software.com/themes/twentythirteen

    Thread Starter kitsin

    (@kitsin)

    I’ve downloaded the latest version of Twenty Thirteen but when I try to upload it to wp-content/themes using cPanel it won’t let me choose the Twenty Thirteen folder I’ve downloaded.

    Did you unzip the download first?

    Thread Starter kitsin

    (@kitsin)

    Thank you so much for your help. I got in touch with my web host and they managed to fix it for me from their end. I appreciate the advice you gave on how to make any future changes to my site.

    Cheers.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Website crashed/Parse error’ is closed to new replies.