The X theme crashes when removing the google tag snippets from X-childtheme Functions.php

Dear Support Team,

Our problem:
Google tag manager is blocking our Secured SSL lock on the home page. All other pages are working. Whynopadlock.com says that Google Tag manager is the culprit.

Attempted solutions:
Removing the google tag snippets from X-childtheme Functions.php. This makes the X theme crash (hence our support request to you).

Please help, how can we solve this?

Thank you!

Hi there,

Would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

All the best!

Hi Jade,

thank you, please find the login credentials in the secure note I’ve added. Also, please take a look at the behaviour of the ‘HOME’ page when opening it for editing with Cornerstone. There seems to be a malfunctioning script? All other pages work fine…

Hi, @Alexander_Harmsen_Co,

The site url is missing in your Secure Note. Could add this info?

Thanks!

Hi there,

Your google tags code are now inactive. I didn’t remove them so you can just enable it back in the future. What I did is add // in front of two actions.

//add_action('wp_head','my_code1', 1);

and

//add_action('x_before_site_begin','my_code2');

But the main reason of Mixed content issue in your site isn’t the google tags, but your videos. You should remove and add them back to make sure the URL is changed.

Thanks!

Thank you, Rad,

we would like to change the video, but our HOME page is not loading in Cornerstone (all other pages seem to load fine).

The message is “Hey! Loading the preview took longer than expected. There may be script conflicts on this page.”
Screenshot attached…

Any idea why this happens and how to solve it so that we can easily replace the video - or generally make changes to the page?

Thank you!

Hi there,

It looks like your hosting has the issue with >>, maybe it’s blocked by your hosting security. That content is added to your buttons, so I replaced it with HTML entity ( https://dev.w3.org/html5/html-author/charref ) and now your cornerstone’s preview is working. :slight_smile:

I also fixed your video’s URL :wink:

Thanks!

Thanks so much, Rad!
We very much appreciate that and are happy about your fast and friendly support :smiley:

You’re most welcome! :wink:

Hi Rad,

Since the tags seemed not to be the problem, do you think it is safe to remove the // from the actions?

Hi there,

Yes, please remove it and it’s just okay.

Thanks!