Simple plugin to add script to header and footer for individual pages & posts
Tested with Gutenberg
Create a simple way to add javascript code to individual page post or custom post type header and footer,
for example: add conversion code to thank you pages
add google re-marketing code to individual pages
and much more…
added in version 1.3 the option to add script \ style to all pages not only individual pages,
this will allow you to add Google re-marketing code to the entire site or Google Analytics
to use it goto “settings” – “Header Footer Settings”
New Features (version 3.0):
Added option for terms / category pages
New Features (version 2.3):
Added support for WooCommerce shop page.
we support now exclude individual pages form printing the header and footer scripts, this is supported by 2 checkboxes in each page\post
buy check it the script will not be display on this page
we added support to limit the script only for certain post type \ page
if you like it \ use it – please rate us.
usage:
You need to paste the code with the script tag, for example:
you js code
change labels
fix bug :When I paste the script into an individual post from a category then the same script is appearing in category listing page as well.
(thanks to Shane (@ugrasen1989))
fix bug : Added support for WooCommerce shop page .
(thanks to Birdieā )
output the individual script after the generic script to support google conversion
Test support for last WordPress version
add nonce check for terms update