WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Delted syntax in theme editor

[Resolved] Delted syntax in theme editor

  • I was trying to add the twitter widget to the theme and messed it up, and now I can’t get into the site at all, the message was;

    websites/123reg/LinuxPackage21/ow/en/ne/owenneilson.com/public_html/blogissimo/wp-content/themes/newspress/functions.php on line 7

    Would love some help
    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator James Huff

    @macmanx

    Were you actually editing one of your theme files or just adding a widget via Appearance -> Widgets in your blog’s Dashboard?

    the theme file, i pasted the html code in, then uploaded and it gave that message, so i deleted the same code i put in and updated and still the same message. now i can’t access the site at all

    Moderator James Huff

    @macmanx

    In this case, I’d recommend just replacing the file with a backup, or the theme’s original file.

    I rarely recommend adjusting a theme’s functions.php file, because even the slightest changes can cause massive problems.

    As for adding a Twitter widget, I recommend trying a plugin instead: http://wordpress.org/extend/plugins/wickett-twitter-widget/

    I think I uploaded the theme from within the dashboard, so where do I look for the theme backup, i haven’t made one. Is it on my control panel of the hosting site?

    Plugin is good but sometimes not what you want, if you do want to edit files then use a local install, LAMPP, WAMPP, if you use Windows try this little application I wrote about, as it does not change any setting on your PC

    Test the changes and then you can deploy them with ftp or file manager.

    HTH

    David

    I mean, now I have 0 access. So how do I go about following your advice, go to the host and then do what?
    Apols for the ineptitude

    I think I uploaded the theme from within the dashboard, so where do I look for the theme backup, i haven’t made one. Is it on my control panel of the hosting site?

    If it was a WordPress Extend theme from extend then download it from this website.

    When you find the theme unzip it and use your ISP control panel file manager to replace the file you changed.

    You could also undo your changes this way, from your ISP websites Control panel > File Manager and not from WordPress admin.

    HTH

    David

    Moderator James Huff

    @macmanx

    It’s always a good idea to keep a backup around for instances such as this.

    If you don’t have one, download the theme from wherever you got it from before, access your server via FTP or SFTP, navigate to /wp-content/themes/ and find and replace the damaged file.

    Edit: Or, instead of FTP or SFTP, use the file manager in your hosting provider’s control panel (as mentioned above).

    Ok, I’ll have to enjoy the rest of the cricket then get on it. Many thanks wordpress gurus

    Moderator James Huff

    @macmanx

    You’re welcome!

    Ok, i went into the control panel for the site after downloading the same theme. Next I replaced the ‘functions.php’ file that is referenced in the error message. Still nothing. I copy and pasted from notepad the whole script then for that file from the original theme, but it hasn’t done anything.
    Please help.
    Thanks

    Ok I did it. James, you’re right, you are a happiness editor. Cheers

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] Delted syntax in theme editor’ is closed to new replies.
Skip to toolbar