WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Delted syntax in theme editor (13 posts)

  1. opneilso
    Member
    Posted 2 years ago #

    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

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

  3. opneilso
    Member
    Posted 2 years ago #

    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

  4. 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/

  5. opneilso
    Member
    Posted 2 years ago #

    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?

  6. Digital Raindrops
    Member
    Posted 2 years ago #

    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

  7. opneilso
    Member
    Posted 2 years ago #

    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

  8. Digital Raindrops
    Member
    Posted 2 years ago #

    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

  9. 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).

  10. opneilso
    Member
    Posted 2 years ago #

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

  11. You're welcome!

  12. opneilso
    Member
    Posted 2 years ago #

    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

  13. opneilso
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic