Support » Plugin: Head & Footer Code » Good, but not perfect

  • It works fine, I could put a script in a specific page’s head as I needed. However, I could not place it right before (or even near) the </head> tag as I wished, even with the “priority” value set at 10.

Viewing 1 replies (of 1 total)
  • Hey @danigar,

    Please note that Head & Footer Code rely on wp_head hook.

    If you set even higher number for priority (999 for example), code injected with HFC will be very close to </head> except if your theme does not hook up to wp_head as latest action in header template.

    Also, if there are async scripts that append links and other content to the end of HEAD HTML section on page load, it’s not possible to render HFC head code closer to </head> at the time when page is rendered because of these post-render scripts.

    I hope that explain it better?

    Kind regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Good, but not perfect’ is closed to new replies.