Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #769009

    Alkemist
    Participant

    I’m trying to install a hotjar snippet (http://docs.hotjar.com/docs/wordpress) onto my X theme site’s header section, but I may be putting it in the wrong header file. I’ve copied the _header.php file at wp-content/themes/x/framework/views/global/ to my child theme at /wp-content/themes/x-child/framework/views/global/, but it doesn’t seem to be working. Can you assist?

    site: alkemi.io
    WordPress 4.4.1
    X – Child Theme theme v. 4.3.2
    Cornerstone Version 1.1.0

    #769659

    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! You may have done it correctly. We cannot check it because your site is under construction mode. based on their instruction, the script should be added before closing the head tag. It should look like this:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_HEADER.PHP
    // -----------------------------------------------------------------------------
    // Declares the DOCTYPE for the site and includes the <head>.
    // =============================================================================
    
    ?>
    
    <!DOCTYPE html>
    <!--[if IE 9]><html class="no-js ie9" <?php language_attributes(); ?>><![endif]-->
    <!--[if gt IE 9]><!--><html class="no-js" <?php language_attributes(); ?>><!--<![endif]-->
    
    <head>
      <?php wp_head(); ?>
    
      <!-- Hotjar tracking code for website.com -->
      <script>
        // the script here
      </script>
      <!-- ends here-->
    
    </head>
    
    <body <?php body_class(); ?>>
    
      <?php do_action( 'x_before_site_begin' ); ?>
    
      <div id="top" class="site">
    
      <?php do_action( 'x_after_site_begin' ); ?>

    Hope this helps. Please let us know how it goes.

    #771700

    Alkemist
    Participant

    Hi. That’s weird because I never put my site in construction mode. I think it’s disabled now. Can you check it? And if it’s not, can you check to make sure I have the hotjar snipped installed in the right header file? Thanks.

    #772033

    Thai
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #774159

    Alkemist
    Participant
    This reply has been marked as private.
    #774380

    Christopher
    Moderator

    Hi there,

    I can’t access FTP account with provided credentials, please check.

    Thanks.

    #776372

    Alkemist
    Participant
    This reply has been marked as private.
    #776383

    Alkemist
    Participant
    This reply has been marked as private.
    #776387

    Alkemist
    Participant
    This reply has been marked as private.
    #777179

    Lely
    Moderator

    Hi Alkemist,

    I am able to check. The code was added correctly:http://screencast-o-matic.com/watch/cDneeChLLH. It is showing fine on your site and there’s no error.

    Always,
    X