• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Added code to functions.php file. Site went down…

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Added code to functions.php file. Site went down…

This topic is: resolved

Tagged: functions.php

  • This topic has 7 replies, 6 voices, and was last updated 11 years, 7 months ago by Bhakti.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • December 3, 2012 at 4:12 pm #3148
    ntety
    Member

    Hello,

    I follow online instructions for adding a StudioPress Affiliate link to my child theme footer as seen here. I added to code to the finctions.php file, updated the file and received a Server Error report. I clicked back and removed the code, updated the file again and received  the same Server Error report. I can't access the site anymore 🙁

    What can I do???

    finallyourwedding.com

    Thank you for any and all help! Im relatively new to this and probably shouldn't have messed with anything this far over my head....

    -Ryan

    December 3, 2012 at 5:12 pm #3157
    Susan
    Moderator

    Ryan - I can guarantee we have all done that at one time or another, so don't stress!

    To access your site, you will want to log into your host site, delete the child theme folder, and upload a clean copy.

    It's recommended that php changes be done through FTP and a code editor, so that you can revert changes without breaking your site.
    Good luck!

    December 3, 2012 at 7:13 pm #3169
    Doak Heggeness
    Member

    I would just go into your cPanel and access your functions.php file and delete the code you just put in. In the future I would do as Susan suggests.


    Doak Heggeness, WordPress Development | Website

    December 3, 2012 at 7:27 pm #3171
    ntety
    Member

    Thanks guys 🙂 Newbie mistake, but my heart sank for a while... Was able to restore everything via the cPanel. Sorry for the premature freakout.

    December 3, 2012 at 8:38 pm #3187
    nickthegeek
    Member

    FYI, if someone finds this in the future for a similar problem. here is a tutorial I wrote to help out

    Site Recovery Tips and Tricks

    December 3, 2012 at 9:13 pm #3193
    ChicGeek
    Member

    Thanks for the great tips Nick!


    The Pixel Spot ♥ A Recommended STUDIOPRESS Customizer ♥ I Tweet

    Genesis Junkie + Web & Graphic Designer + Ad World Girl + Student of Life

    November 27, 2013 at 5:13 pm #75972
    Bhakti
    Member

    So this just happened. What makes the situation scary is, that I don't have the current FTP/Cpanel login, and the guy who has them, can't be reached until next week or so. Is there *any* other way to restore a site that went down due to adding *correctly* a snippet of code to the bottom of functions.php? I copied the code from a tutorial on here, I didn't include the top line (which says not to include it). Now all I see is white. http://www.aboutmeditation.com

    I was simply doing a switch from our old theme to Genesis+Metro. I added a code to take out the default footer text and replace with our own. Now I can't even login to WordPress.

    November 27, 2013 at 6:22 pm #75979
    Bhakti
    Member

    Ok I was able to get the FTP info and just replaced the functions.php through there and that did it. From now on, I will not add codes to the php, even if they're directly from the tutorials... Or will but with some super caution and an experienced php person with me 🙂

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble