• Resolved Styrishave

    (@styrishave)


    Hi,

    I’m in a totally panic! I wanted to change a background color in widget footer but now I’m stuck with this error:

    Parse error: syntax error, unexpected ‘.’ in /var/www/kristianstyrishave.dk/public_html/wp-content/themes/twentyeleven/inc/widgets.php on line 186

    I cannot enter the page and therefore not even delete the text I pasted…. I really don’t know what to do here.

    If anyone have ANY suggestion as the page is now totally down and I can’t enter the adminpage I would be very very grateful.

    As I’m a totally newbie it could be great if someone could it explain it to me step by step

Viewing 4 replies - 1 through 4 (of 4 total)
  • It sounds like you tried to edit the theme widget.php file? If that’s the case, you can replace the theme with a fresh copy.

    If you can’t access your admin pages, you’ll need to use an FTP client (like FileZilla), or your host’s cpanel (or File Manager) and navigate to the files on the server.

    In your WP installation there, find wp-content/themes and rename the twentyeleven theme’s folder to something like twentyeleven-hold, or delete it altogether. That will disable the theme and hopefully allow you to get back into WP admin. WP will use a default WP theme in its place (probably Twentyfifteen).

    Once you can get back in to your admin pages, re-install a fresh copy of the theme. If you have made other changes to the theme, you will lose them of course. That’s why you should always make changes to a child theme.

    The change you were trying to make at the outset should probably be done in custom style sheet, BTW.

    Thread Starter Styrishave

    (@styrishave)

    Thank you very much – I’ll try 🙂

    Thread Starter Styrishave

    (@styrishave)

    Yay it worked perfectly – thank you so much. You just saved my day 🙂

    Great! Glad you got it fixed. You’re welcome!

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

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