Home › Forums › IT Consultant Support › Used Theme Editor and crashed site
- This topic has 2 replies, 2 voices, and was last updated 5 years, 9 months ago by Sonl Sinha.
-
AuthorPosts
-
March 11, 2019 at 2:13 pm #119210
I was trying to get my Mailchimp newsletter to display properly in Charity Pro theme and Mailchimp’s instructions are as follows (copied and pasted from Mailchimp site):
“Add our code to your site
Copy code
Click Copy and access your site’s HTML.
Add code
Decide which pages you want to connect to Mailchimp. For each of these pages, paste in your site code just before the closing </head> tag.Check connection
After you’re done, return to this page and check connection.”The code I added was <script id=”mcjs”>!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,”script”,”https://chimpstatic.com/mcjs-connected/js/users/b4df20414ba53d8ba40221596/e44f68c0f29c533342429df74.js”);</script>
and I added it on the line just before the </head> tag as instructed. So the html in the Theme Editor looked like this:
<html <?php language_attributes(); ?>>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”SKYPE_TOOLBAR” content=”SKYPE_TOOLBAR_PARSER_COMPATIBLE”>
<meta name=”viewport” content=”width=device-width”>
<link rel=”profile” href=”http://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<!–[if lt IE 9]>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri(); ?>/js/html5.js”></script>
<link rel=”stylesheet” href=”<?php echo get_template_directory_uri(); ?>/css/ie.css” type=”text/css” media=”all” />
<![endif]–>
<?php
wp_head();
$themename = wp_get_theme();
$themename = preg_replace(“/\W/”, “_”, strtolower($themename) );
if( !get_option( $themename ) ) {
require get_template_directory() . ‘/index-default.php’;
exit;
?>
<script id=”mcjs”>!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,”script”,”https://chimpstatic.com/mcjs-connected/js/users/b4df20414ba53d8ba40221596/e44f68c0f29c533342429df74.js”);</script>
</head>I updated the page on WordPress then checked the connection in Mailchimp and it said it was connected. When I reloaded my website, all I get is a completely blank page. No error, no nothing. My website is aartexas.org
I deleted the code I added and updated the WordPress site and my webpage still will not load. The current html in the Theme Editor looks like this:
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”SKYPE_TOOLBAR” content=”SKYPE_TOOLBAR_PARSER_COMPATIBLE”>
<meta name=”viewport” content=”width=device-width”>
<link rel=”profile” href=”http://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<!–[if lt IE 9]>
<script type=”text/javascript” src=”<?php echo get_template_directory_uri(); ?>/js/html5.js”></script>
<link rel=”stylesheet” href=”<?php echo get_template_directory_uri(); ?>/css/ie.css” type=”text/css” media=”all” />
<![endif]–>
<?php
wp_head();
$themename = wp_get_theme();
$themename = preg_replace(“/\W/”, “_”, strtolower($themename) );
if( !get_option( $themename ) ) {
require get_template_directory() . ‘/index-default.php’;
exit;
?>
</head>What have I messed up and how can I fix it?
Thank you
March 11, 2019 at 8:09 pm #119223Nevermind, I found the error!!!
March 13, 2019 at 5:08 am #119297Cool
-
AuthorPosts
- You must be logged in to reply to this topic.