Seeking advise to remove some script from my website please. Thanks

Permalink
Hi,

I have a bit of script I would like removed from my website. The script was for a third party live chat app I had set up. I have since turned off the data gathering from the third party app called Tawk.to.

When I originally put the script onto my site, to the best of my memory. I just created a HTML block , on the page and dumped the HTML script for Tawk onto either the home page or all the pages I do not recall.

The issue is, for reasons that would be another long post, yet related. Is that if I go into edit mode in Concrete5 I can not see the HTML blocks that had been creaated for that dropping in the html twak.to script.

How to see these blocks, is either not possible or extremely difficult to do when it comes to the HTML blocks.

The script I want removed is the Tawk.to script.
( Using Inspect element in browser ) you can see the full script here
http://www.melangecounselling.com

Any thoughts of getting rid of this script, short of breaking anything.
Thanks!!!!!!!!!

melange
 
mnakalay replied on at Permalink Reply
mnakalay
Have a look at the file concrete\blocks\html\view.php
in it you will see
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<?php echo $content; ?>

modify it like this
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<?php
$c = \Page::getCurrentPage();
if (is_object($c) && !$c->isError() && $c->isEditMode()) { ?>
<h1>Hey I am here delete me please!</h1>
<?php } ?>
<?php echo $content; ?>

Then put your page in edit mode and you should have absolutely no problem seeing your block