BluePlanetAlmanac
Member
Posted 2 years ago #
My Ocean Mist theme (thanks, Ed Merritt) needs the hook <?php wp_head(); ?> so Viper's Video Quicktags will work correctly. But I'm a noob to to WordPress and PHP coding. Would someone turn me on to where and how to install it? I'm simply trying to get Sir Ed's lovely theme to open the player at my blogsite rather than spawn a new YouTube window. Franks very much for the help.
s_ha_dum (was apljdi)
Member
Posted 2 years ago #
<?php wp_head(); ?> usually goes right before the closing head tag -- </head> -- in the theme's header.php.
BluePlanetAlmanac
Member
Posted 2 years ago #
Hey, apljdi:
Thanks. In the wp-blog-header.php file I looked for the header end tag but don't find it. Am I looking in the right file? The guts of the file say,
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
?>
s_ha_dum (was apljdi)
Member
Posted 2 years ago #
No, wrong file. You don't want to mess with wp-blog-header.php unless you absolutely have to. That counts as a core edit and it will upgrading a pain. The file you want is your theme's header.php-- wp-content/themes/<yourthemename>/header.php.
BluePlanetAlmanac
Member
Posted 2 years ago #
Thanks, friend. I found it a couple of minutes ago and Mission Accomplished. May the Road Rise to Meet you.