Override plugin functions in functions.php

It is possible to filter the get_bloginfo(), but you’ll have to find a way to fine tune the conditional, because the override is global… add_filter( ‘pre_option_blogname’, ‘wpse_58030_override_blogname’ ); function wpse_58030_override_blogname( $bool ) { // If not page with ID == 28, do nothing if( !is_page( 28 ) ) return false; // Change the ‘blogname’ return … Read more

Put code into body tags near top, using a plugin

Put that script into a file somewhere in your theme folder. Include it using the following code in your theme’s functions.php file: <?php function wpa_65602_enqueue_scripts() { wp_enqueue_script( ‘facebook’, get_bloginfo( ‘template_url’ ) . ‘/path/to/script.js’ ); } add_action( ‘wp_enqueue_scripts’, ‘wpa_65602_enqueue_scripts’ );