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
      29
      Views

      anand

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

    • jeremy

      Cannot access "insert script to footer" only <head>
      • jeremy

      3
      3
      Posts
      25
      Views

      jeremy

      @anand said in Cannot access "insert script to footer" only <head>:

      If it's only a few pages

      Hi Anand, thank you for your response. I have about 10-15 blog pages and posts I want to update so that the footer includes a script for structured FAQ responses on google search. Please send through the work around and I can give it a go. Thanks, Jeremy

    • Petr Tran

      Header and Footer plugin - Remove whitespace
      • Petr Tran

      2
      2
      Posts
      12
      Views

      anand

      Is this happening only on the front page or site wide? May be you need to check for extra space at the end of the inserted code.

    • P

      Header and Footer plugin - Add php code
      • Patrickre

      4
      4
      Posts
      22
      Views

      anand

      There would not be any performance issue as such. But if you really want to execute the code on only one page then creating custom page template might be a solution.
      https://developer.wordpress.org/themes/template-files-section/page-template-files/

      Unfortunately, with the plugin it's not possible.

      PS: Imo, i would still suggest about using functions.php

    • peledona

      Some scripts on localhost not loading 404 error
      • peledona

      3
      3
      Posts
      30
      Views

      anand

      Hello there,

      I think the link might be broken or the script is not on the http://localhost/js/onepagescroll.js

      Does the script loads when you directly go the link using your browser. In which directory you have added those file? I guess its not the root of the wp dir.

    • M

      Header and Footer plugin - Delete a script
      • Mirco

      2
      2
      Posts
      40
      Views

      anand

      The page seems to be "cached" either by a caching plugin or your browser. Make sure you have cleared the cache.

    • SHALINI MUKHERJEE

      Can't place my HEADER tag for adsense verification
      • SHALINI MUKHERJEE

      4
      4
      Posts
      74
      Views

      anand

      Hello,

      Just clear the WordPress cache and your browser cache. It should work fine. If the problem persists share your domain. The ads might take up to an hour to display properly on your site. However you may check for source code by hitting Ctrl+U.

    • B

      Header and Footer Scripts Plugin Alters my Navigation Bar?
      • blake

      6
      6
      Posts
      102
      Views

      B

      Do you see anything in this facebook code snippet that would cause the menu to break?

    • Ícaro Freire

      Script won't work
      • Ícaro Freire

      3
      3
      Posts
      96
      Views

      Ícaro Freire

      @anand said in Script won't work:

      your site is https enabled then you should load 'https' resources. In this case the js is loaded via http. Your browser might be blocking http. "Mixed content error"

      Thanks for the reply. Hmmm. My site is https enabled, indeed. Is there a workaround?

      Edit: I change the src to https and it works now. Thanks!!

    • Mike Robinson

      Header and Footer Script GDPR?
      • Mike Robinson

      2
      2
      Posts
      46
      Views

      anand

      Hello Mike,

      The plugin does not track users or insert any cookie unless you add one.

      I hope it clears your doubt.

    • V

      Header and Footer Scripts plugin
      • virginiamaile

      5
      5
      Posts
      186
      Views

      anand

      Sorry for the late reply. Your site was previously redirecting to some random page. Its now loading on my side. I'll take a look on the issue asap.

    • R

      403 Forbidden error
      403forbidden • • RedJanet

      16
      16
      Posts
      245
      Views

      anand

      OK. Thanks for confining. I hope you are enjoining the plugin. Please rate us and leave a review at WordPress.org, if possible.

      https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/?filter=5

    • B

      Header code not inserted on woocommerce shop page
      • bb123

      2
      2
      Posts
      169
      Views

      anand

      Could you verify that the theme does support wp_head? If not, that might be the culprit.

    • J

      header and footer wp plugin
      • jusolal

      2
      2
      Posts
      252
      Views

      anand

      It surely be the caching issue. Wait for few more hours and it will be resolved or clear your browser cache and WordPress cache.

      BTW, What's the page url?

    • J

      Hubspot Contact Form
      • janeale

      8
      8
      Posts
      385
      Views

      J

      It was the caching issue and it's now working. Thanks again for the help!

    • Ιωάννης Κωνσταντινίδης

      Need help(code) to use for html placement
      • Ιωάννης Κωνσταντινίδης

      2
      2
      Posts
      213
      Views

      anand

      Yes, you can do this as long as it is not php. The code will be provided by the service provider. All you have to do is paste the code in appropriate textbox in the "header and footer scripts" plugin settings page.

    • E

      I looks like the cookiebot skript is not embedded at the right place
      • eta

      2
      2
      Posts
      253
      Views

      anand

      Hello,

      I do not know about "Cookiebot" but you might need to check this article. https://cookie-script.com/how-to-block-third-party-cookies.html

      <iframe width="560" height="315" src="https://www.youtube.com/embed/xxxxxxxxx" frameborder="0" allowfullscreen></iframe>
      should be like
      <iframe width="560" height="315" data-src="https://www.youtube.com/embed/xxxxxxxxx" data-cookiescript="accepted" frameborder="0" allowfullscreen></iframe> or
      <iframe width="560" height="315" data-src="https://www.youtube.com/embed/xxxxxxxxx" data-cookiescript="accepted" alt="Please accept cookie policy first" frameborder="0" allowfullscreen></iframe>

    • Y

      Phone # Change Across Site when Plugin Activated
      • yvettec

      2
      2
      Posts
      207
      Views

      anand

      Hello,

      This is really interesting. The plugin can't change your phone number even if you wanted. You must have done something else.

      BTW, was Google Analytics code appearing in the head section?

      Try reactivating the plugin. And let me know.

    • C

      Data in Script Box not saving on WP 4.9.8
      • cmsaatva

      3
      3
      Posts
      326
      Views

      anand

      Hello @cmsaatva

      Does the issue persists with all types of code. Try to save some analytics code like Google analytics, to check it it's being saved. Also, if possible, do share the code you are trying to save so I could dig if there is any bug. Code sanitization might be the culprit.

      Sorry for the late reply. I have been busy since couple of days.

      PS: You may DM the code via chat or just email me at anandkumar@protonmail.com

    • L

      Header and Footer Scripts Wordpress Plugin - Restrict Access
      • llarenavera

      4
      4
      Posts
      384
      Views

      anand

      A site specific plugin is an alternative way to add custom code if you can't (or don't want) modify your theme's functions.php file. This link might help you understand better: https://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/