• I added a line of code to the functions.php and after i saved the change I got this messagee “Parse error: syntax error, unexpected ‘<‘ in /home/hadosfol/hadosfolly.com/arts_anon/wp-content/themes/pixel/functions.php on line 48”

    I can’t get into the dashboard to edit t!he file again. Do I have to start over with a new version of WordPress? That seems awfully harsh. I tried importing a database backup but nothing changes.

    I’m a newbie – trying to set up a site with a theme that I’m tweaking. Not much of a coder so it’s slow going. Has anyone else had this problem? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • open up functions.php in the directory it’s telling you and fix the parse problem it’s telling you around line 48. it’s nothing you can fix through the dashboard or admin. it’s a problem in your coding and you need to fix the physical file.

    You can still edit the functions.php file.

    There are 2 ways.

    1. Log into your web hosting control panel and navigate to your wp-content/themes/ directory and then the directory of the theme you are using.

    In that directory, you’ll see the functions.php file. Use your web hosting’s File Editor to edit the file and save the changes.

    2. Log into your account through FTP and navigate to the same directory.

    Download the file, edit it, and upload it back up.

    Thread Starter sheelamc

    (@sheelamc)

    Thank you! Found it and fixed it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘parse error and can’t get into dashboard’ is closed to new replies.