• 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

Header and Footer scripts broke site???

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 › General Discussion › Header and Footer scripts broke site???

This topic is: not resolved

Tagged: header scripts

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 4 months ago by Victor Font.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 3, 2015 at 6:22 am #143019
    Kai
    Member

    I just added the google analytics script code with the Genesis function under Theme Settings >> Genesis Header and Footer scripts.

    I put the code there, it worked fine and I could see the script in the source code of the page. Since a few minutes later page isn't showing anything anymore. I get this error in the console: "Failed to load resource: the server responded with a status of 500 (Internal Server Error)"

    The backend still works though. How can I delete code I added through this Genesis function? Since when you click the save, the code just disappears... Where is it put in the first place?

    I just put the domain up a few hours ago...

    http://web-novum.de
    March 3, 2015 at 7:13 am #143025
    Victor Font
    Moderator

    Nothing should disappear when you enter code into the header and footer script section. Genesis settings are stored in the wp-options table. Since the site worked after you added the code, it's very likely that there's something else going on that is not related to Genesis.

    When I checked your site, I am not getting the internal server error. My browser has been served a blank page with no WordPress structure.

    Error 500s are very difficult to diagnose, but usually mean there's a server misconfiguration someplace. They are most often caused by a file permission error or coding error in htaccess. Here's an article that discusses some of the many causes and how to fix them: http://pcsupport.about.com/od/findbyerrormessage/a/500servererror.htm.

    If I were attempting to fix this, the first thing I would do is revert back to one of the WordPress delivered themes. If the site comes back up, it's a good indication that there's something wrong with your Genesis install or child theme. If the site stays down with a WordPress default theme, the issue has nothing to do with Genesis.

    After that I'd go through the steps of disabling all plugins and testing each one to determine if there's a conflict. Then, if all else fails, reinstall WordPress.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 3, 2015 at 7:34 am #143031
    Kai
    Member

    Thank you for your detailed answer.

    I switched to an wordpress theme and the site worked flawless.
    Deactivating the plugins didn't bring any change.

    I found the error was that the script code was in my front-page.php becaue I tried to implement it myself and that caused the issue, i was pretty sure I had it deleted... my stupid.

    how could I add script code to the wp_head manually without the genesis function?

    March 3, 2015 at 3:03 pm #143108
    Victor Font
    Moderator

    If you use the Yoast SEO plugin, you don't have to add any code at all. All you do is tell the SEO plugin what your analytics id is and it will take care of everything.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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

© 2026 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