Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Created January 31, 2012 00:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GaryJones/1707880 to your computer and use it in GitHub Desktop.
Save GaryJones/1707880 to your computer and use it in GitHub Desktop.
Include Facebook Open Social namespaces.
<?php
remove_action( 'genesis_doctype', 'genesis_do_doctype' );
add_action( 'genesis_doctype', 'child_do_doctype' );
/**
* Include Facebook Open Social namespaces.
*
* @author Gary Jones
* @link http://code.garyjones.co.uk/modify-doctype/
*/
function child_do_doctype() {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment