Title: Adding scripts in header removes home page elements
Last modified: July 10, 2018

---

# Adding scripts in header removes home page elements

 *  [pierresadventures](https://wordpress.org/support/users/pierresadventures/)
 * (@pierresadventures)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/adding-scripts-in-header-removes-home-page-elements/)
 * 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.
    -  This topic was modified 7 years, 11 months ago by [pierresadventures](https://wordpress.org/support/users/pierresadventures/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-scripts-in-header-removes-home-page-elements%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pierresadventures](https://wordpress.org/support/users/pierresadventures/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/adding-scripts-in-header-removes-home-page-elements/)
 * Status: not resolved