Community Forums › Forums › Archived Forums › General Discussion › Header and Footer scripts broke site???
Tagged: header scripts
- This topic has 3 replies, 2 voices, and was last updated 9 years, 10 months ago by Victor Font.
-
AuthorPosts
-
March 3, 2015 at 6:22 am #143019KaiMember
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.deMarch 3, 2015 at 7:13 am #143025Victor FontModeratorNothing 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 #143031KaiMemberThank 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 #143108Victor FontModeratorIf 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? -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.