Navigation

    Digital Liberation Forums

    • Register
    • Login
    • Search
    1. Home
    2. Categories
    3. Plugin Support
    4. Header and Footer Scripts
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • J

      Cannot Add Two Scripts
      header javascript scripts wordpress • • jhquisenberry

      4
      4
      Posts
      110
      Views

      anand

      This topic is being discussed here https://wordpress.org/support/topic/cannot-add-two-scripts/

    • Shankar Gairy

      Can not edit my JS in the header/footer.
      • Shankar Gairy

      2
      2
      Posts
      42
      Views

      anand

      Hello,

      Have you recently updated the plugin or WordPress or switched your host?

      Is it an issue for individual post/page or global (site wide) scripts?

    • Doug Pitchers

      Script in header ignored
      • Doug Pitchers

      5
      5
      Posts
      115
      Views

      anand

      Hello,

      I have just visited your site http://www.dpwebdevelopment.co.uk which you mentioned on WP.org. The site do not enqueue jQuery:

      The following links might be helpful for you.
      https://stackoverflow.com/questions/11159860/how-do-i-add-a-simple-jquery-script-to-wordpress
      https://premium.wpmudev.org/blog/adding-jquery-scripts-wordpress/

      I don't know why you have added jQuery 3 times. Read the above links for details.

      HTH

    • Татьяна Петровна

      Не могу установить пиксель Фейсбук. https://kypluvnet.com/Установила Header and Footer Scripts . Пиксель не работает. Как это исправить? Заранее, спасибо!
      • Татьяна Петровна

      2
      2
      Posts
      23
      Views

      anand

      Hello could you please discuss in English? If yes please do so..

      "Где вы добавили код facebook? Вы также можете использовать встроенную интеграцию WooCommerce."
      Google Translate

    • A

      Screen Options not visible
      • ABK

      5
      5
      Posts
      103
      Views

      anand

      If it's not there then your WordPress has some issue.

    • B

      Landing Page Header Script to redirect to Branded WP Page
      • BRIANLEENASH

      4
      4
      Posts
      72
      Views

      anand

      @MD-BI-Lal-Hossain

      Download the software from here:

      https://wordpress.org/plugins/header-and-footer-scripts/

    • R

      script not inserted just before </body>
      • Robert

      3
      3
      Posts
      75
      Views

      R

      Update: I turned off the plugin and added the script directly to the footer.php file

    • Jeroen Claessens

      footer script disable on a single page
      • Jeroen Claessens

      4
      4
      Posts
      146
      Views

      anand

      It could be something like this:

      function anand657_hook_javascript() { if (!is_page ('920')) { ?> <script type="text/javascript"> // your javscript code goes here </script> <?php } } add_action('wp_footer', 'anand657_hook_javascript');

      PS: DON'T RUN THE ABOVE CODE ON LIVE SITE UNLESS YOU HAVE A BACKUP. it might break your site if any thing goes wrong. It's good to have backup handy.

    • Brian von Konsky

      Script for Google Chart not loading in head of local page.
      • Brian von Konsky

      3
      3
      Posts
      59
      Views

      anand

      Thanks for reporting, Brian.

      Good day.

    • ricardo lopes

      Header and footer scripts Plugin not working in single pages
      • ricardo lopes

      1
      1
      Posts
      72
      Views

      No one has replied

    • K

      Header Script not working / being ignored
      • kmahesh

      2
      2
      Posts
      74
      Views

      K

      Issue resolved. There was a problem with a link to the .js. Once I used https URL, it started working.

    • Jennifer Pape

      Error message: Illegal string offset 'synth_header_script'
      • Jennifer Pape

      2
      2
      Posts
      63
      Views

      anand

      Hello Jenny,

      Have you recently updated the plugin and since then the issue arises? What's the version of the plugin?

    • R

      Header script not embedding just before closing </head> tag
      • rthaemert

      2
      2
      Posts
      79
      Views

      anand

      The plugin uses wp_head hook to insert codes. Others plugin and themes also usage the hook. The first script loaded is probably have high priority.

      If it is not required by any specific script you may simply ignore it.

      Let me know if you need clarification.

    • Sai Charan Reddy Pammi

      Schema is not Showing in SERP
      • Sai Charan Reddy Pammi

      3
      3
      Posts
      69
      Views

      anand

      The last change was made on April 26th in WordPress SVN repository.

    • Chris Dickinson

      My script is not appearing on the site
      • Chris Dickinson

      3
      3
      Posts
      105
      Views

      anand

      Have you cleared cache?

    • S

      header script not working
      • Skazi56

      2
      2
      Posts
      149
      Views

      anand

      If the script loading on site then it's most probably the Google Tag Manager issue. Let me know if it does not appears on site.

    • N

      Does code in header scripts for a specific page run after sitewide header?
      • nevvazquez

      2
      2
      Posts
      117
      Views

      anand

      Yes, it does.

    • M

      Wordpress getting logout automatically
      • manish22

      1
      1
      Posts
      115
      Views

      No one has replied

    • B

      Google Tag Manager script needs to be below opening Body, not before closing Body
      • b123

      1
      1
      Posts
      159
      Views

      No one has replied

    • F

      Hide field for certain users
      • freshysites

      1
      1
      Posts
      241
      Views

      No one has replied