Error in Theme Functions file

Homepage Community Forums SquareOne Theme Support Error in Theme Functions file

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18719
    Allison
    Customer

      I was editing my theme functions file (functions.php) and seem to have created an error. My site isn’t live yet (it’s set up on a staging service) but is very near to being done. However, I don’t have the experience with php necessary to rectify the error.
      2 questions:
      1) Is it possible to get the original functions.php file and replace the bad one?
      2) If I do this, will I lose the changes I’ve made to my site (all in style.css, haven’t edited functions.php before).
      Thanks,
      Allison

      #18722
      Allison
      Customer

        Crisis averted. I’m back up and running!

        #18725
        Andykev
        Customer

          Allison,

          Glad you’re back up.

          You should “copy” your functions.php and your .css and any other code file and save it as a safeguard. Editing the functions.php via the Admin panel thru your WordPress theme (control panel) is risky. If you goof up any punctuation, or leave off a { ” or . or anything it can give the “white screen of death”.

          Better to use your Hosting C-panel to edit, so you can get back in if a mistake is made, and use FTP.
          Far, far safer.

          (I’ve done it once. That cold, shiver you get the first time you do it is not fun).

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.