Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #995619
    SyncInteractive
    Participant

    Hi there, it seems that any content in the APPEARANCE > CUSTOM > JAVASCRIPT section of the control panel is now no longer working across our whole site.

    The CSS section is fine, but code we have in the javascript section that added custom links to a whole column on each page for a contact link this was on the orange type text bar at the bottom of all screens), as well as our analytics code WAS working previously, but appears to no longer work – and as far as I’m aware nothing has been updated or changed since it was working.

    We’re completely puzzled as to what may have caused this, could someone possibly have a look over the site, or if you have any suggestions on where else we can add the code to bypass whatever is going on here that would be great.

    Thanks for your time.

    the site I’m referring to is over at: http://www.syncinteractive.co.uk

    #995787
    Rupok
    Member

    Hi there,

    I’d like to check the code and backend where you have used the column (point us where you have used the custom ID that using on the script).

    To do this, you can make a post with the following info:

    – Link 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.

    #996968
    SyncInteractive
    Participant
    This reply has been marked as private.
    #997024
    Lely
    Moderator

    Hi There,

    The following code should be added on a child theme and not on Customizer JS:

    <script type="text/javascript" src="http://web-cntr-07.com/js/38547.js" ></script>
    <noscript><img src="http://web-cntr-07.com/38547.png" style="display:none;" /></noscript> 

    It will cause error on the customizer. Please remove it. We will add it using a child theme instead.

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then add this code on your child theme’s functions.php file:

    function third_party_tracking_code() { ?>
    
    <script type="text/javascript" src="http://web-cntr-07.com/js/38547.js" ></script>
    <noscript><img src="http://web-cntr-07.com/38547.png" style="display:none;" /></noscript>    </script>
    
    <?php }
    
    add_action( 'wp_footer', 'third_party_tracking_code' );

    Hope this helps.

    #997041
    SyncInteractive
    Participant

    Ah that is fantastic news!! Thanks you so much for the help on this, we’ve been completely stumped here on what the issue is.

    I genuinely can’t say how impressed I’ve been with the support on here, HUGELY appreciated!

    #997121
    Lely
    Moderator

    You’re welcome!

    Glad we were able to help. Thank you also for the kind words.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-995619 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>