Used Theme Editor and crashed site

Home Forums IT Consultant Support Used Theme Editor and crashed site

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #119210
    Robyn ClarkRobyn Clark
    Participant
    • Topics: 2
    • Replies: 1
    • Total: 3
    Member since: December 20, 2016

    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

    #119223
    Robyn ClarkRobyn Clark
    Participant
    • Topics: 2
    • Replies: 1
    • Total: 3
    Member since: December 20, 2016

    Nevermind, I found the error!!!

    #119297
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31035
    • Total: 31035
    Member since: August 16, 2013

    Cool

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