-
AuthorPosts
-
January 28, 2016 at 10:23 am #769009
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.0January 28, 2016 at 6:53 pm #769659Hello 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.
January 30, 2016 at 2:28 am #771700Hi. 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.
January 30, 2016 at 10:09 am #772033Hi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
February 1, 2016 at 6:23 am #774159This reply has been marked as private.February 1, 2016 at 8:41 am #774380Hi there,
I can’t access FTP account with provided credentials, please check.
Thanks.
February 2, 2016 at 11:47 am #776372This reply has been marked as private.February 2, 2016 at 11:49 am #776383This reply has been marked as private.February 2, 2016 at 11:50 am #776387This reply has been marked as private.February 2, 2016 at 9:43 pm #777179Hi 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 -
AuthorPosts