WordPress.org

Plugin Reviews

OH Add Script to Individual Pages Header Footer

Simple plugin to add script to header and footer for individual pages & posts

13 reviews
Average Rating
4.9 out of 5 stars
Makes a simple task as simple as it should be
By , for WP 4.4.2

I was going out of my mind trying to achieve this simple task before I found this. Worked perfectly first time. Excellent plugin.

Awesome
By , for WP 4.4.1

This plugin does what it says and makes life easy to add scripts to your pages.

Works Well With Google Adwords Tracking Code
By , for WP 4.3

Tried lots of plugins before, just to put a single javascript tracking code from Google Adwords, but no one seems to work fine.

OH add script is the first that worked with the Google Tag Assistant. Very nice plugin, because i want to track conversions for just one page, not entire site.

Thanks!

Must have plugin!
By ,

You must install this plugin for theme that don't support adding customize header/footer code

A well written and super handy plugin
By , for WP 4.1.1

Fantastic add-on to use with an app-platform or more complex websites. Makes work much easier. Lovely! Thanks a lot!

I found it!
By , for WP 4.1.1

Thank you!
ps: fruitful theme

Warning Search Page
By ,

The code gives a notice in the search.php file as it has $ post-> ID, the solution is to add two lines:

function oh_add_script() {
    global $post;
    <strong>if (!isset($post)) return;</strong>
    $output = get_post_meta($post->ID,'_oh_add_script_header',true);
    echo stripslashes($output);
    $sogo_header_footer =  get_option('sogo_header_footer');
    if(isset($sogo_header_footer['oh_header'])){
        echo stripslashes($sogo_header_footer['oh_header']);
    }

}
function oh_add_script_footer() {
    global $post;
    <strong>if (!isset($post)) return;</strong>
    $output = get_post_meta($post->ID,'_oh_add_script_footer',true);
    echo stripslashes($output);
    $sogo_header_footer =  get_option('sogo_header_footer');
    if(isset($sogo_header_footer['oh_footer'])){
        echo stripslashes($sogo_header_footer['oh_footer']);
    }

}
Works great for me on my child theme
By , for WP 4.1

Worked well on a Genesis child theme, and as stated, it doesn't load the script on other pages or posts.

Thanks for making this available on the WordPress repository!

Saved the layout of my new site
By , for WP 3.9.1

I looked high and low for a plugin that would do as this one does. Not only is this one supported, but it was supported quickly - and they went beyond the call of duty to help me work this into my theme after a small bug in the theme's code prevented proper function.

Thank you guys.

Fantastic plugin! Very useful!
By ,

This should be default in wordpress nowadays!

Wonderful plugin, works with all themes, regular updates. What more can you ask!

You must log in to submit a review. You can also log in or register using the form near the top of this page.