Code showing on page

Hi,

This text is showing under footer in each pages;  //]]>
I have no idea where this should be edited. I have very little coding experience so forgive me if this is a noob question. 
Its visible at the bottom of pages on this site: https://camkat.host/

Any ideas?

Thank you.

Comments

  • edited August 2018
    This happens only while using BeTheme
  • Hi,

    Please open your website in Firefox html mode (CTRL+U) and check html errors you got. Please fix them first and all should be fine.

    Thanks!
  • edited August 2018
    I have corrected the following html code found in a section of the page using the page editor in WP.

    This is the code before chage:

    By continuing to use this site or services<br /> you are providing consent and agreeing to the conditions<br />of all Policies/documents linked below
    <a href="https://camkat.host/?page_id=209"target="_blank">DATA PROCESSING POLICY</a><big><strong> *</strong></big> <a href="https://camkat.host/?page_id=209"target="_blank">TERMS and CONDITIONS</a><big><strong>*</strong></big>  <a href="https://camkat.host/?page_id=209"target="_blank">ALL POLICIES</a>

    this corrected that code after changing to the following: (it made no difference to the page)

    By continuing to use this site or services<br /> you are providing consent and agreeing to the conditions<br />of all Policies/documents linked below
    <a target="_blank" href="https://camkat.host/?page_id=209">DATA PROCESSING POLICY</a><big><strong>*</strong></big> <a target="_blank" href="https://camkat.host/?page_id=209">TERMS and CONDITIONS</a><big><strong>*</strong></big><a target="_blank" href="https://camkat.host/?page_id=209">ALL POLICIES</a>


    However I believe I have found the area that is causing the problem but I don't know how or were to change the following offending scrip: I dont know the path to find or edit that file nor can I see it within the page editing. Hope you can help

    </script>
    <!-- script | custom js -->
    <script id="mfn-dnmc-custom-js">
    //<![CDATA[
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-120580551-1"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-120580551-1');
    </script>

    //]]> <----- this is what I want to remove
    </script>
    <script type='text/javascript' src='https://stats.wp.com/e-201835.js' async='async' defer='defer'></script>
    <script type='text/javascript'>
    _stq = window._stq || [];
    _stq.push([ 'view', {v:'ext',j:'1:5.9',blog:'144253186',post:'88',tz:'0',srv:'camkat.host'} ]);
    _stq.push([ 'clickTrackerInit', '144253186', '88' ]);
    </script>

    </body>
    </html>
    Thank you Pablo.
     
  • Please delete whole Custom JS scripts.
    Thanks.
  • edited August 2018
    As mentioned I have no idea where to find or edit this? Although you give an answer you have not replied to the question; Where do I find this to edit it? 

    see previous comment from me:

    "However I believe I have found the area that is causing the problem but I don't know how or were to change the following offending scrip: I dont know the path to find or edit that file nor can I see it within the page editing. Hope you can help"
  • You can find this Custom JS in
    Theme Options > Custom CSS & JS > JS
    or inserted into hooks in Theme Options > Global > Hooks

    Also, check the Theme Options > SEO
    Please make sure that there is just blank field.

    Thanks.
  • Thank you Pablo; 

    The code was here Theme Options > Custom CSS & JS > JS
    I removed the script and it sorted the problem
Sign In or Register to comment.