• Hello.

    I’m having trouble when adding scripts to the header using the plugin, “Insert Headers and Footers.” I currently need three scripts but when used altogether, information from my home page is missing on desktop site, it works fine on mobile.

    Previously, I’ve only had one script from Mailchimp:

    <script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script>

    Then I’ve had to add two more from Iubenda (for GDPR compliance) and Google AdSense:

    <script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us18.list-manage.com","uuid":"920daafac0e5ab61549d800df","lid":"80906c65e9"}) })</script
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
      (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "ca-pub-4045224158024832",
        enable_page_level_ads: true
      });
    </script>

    After adding the two new ones, some elements (section titles, text, portfolio section, pictures) no longer appear when using desktop view. It appears fine on mobile and Iubenda’s script runs as intended.

    I am updated to WordPress 4.9.7. running Creativo Theme. The page seems to lose information when adding more than one script. I am not sure if that is the case or if I am adding them incorrectly.

    The page I need help with: [log in to see the link]

The topic ‘Adding scripts in header removes home page elements’ is closed to new replies.