Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Last active May 4, 2020 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfontjr/88bc108f6e6ed0da4035fafda3eec528 to your computer and use it in GitHub Desktop.
Save vfontjr/88bc108f6e6ed0da4035fafda3eec528 to your computer and use it in GitHub Desktop.
<?php
<?php
/**
* Genesis Framework.
*
*
* @package Copied from Genesis\Templates
* @author StudioPress
* @license GPL-2.0+
* @link http://my.studiopress.com/themes/genesis/
*/
do_action( 'genesis_doctype' );
do_action( 'genesis_title' );
do_action( 'genesis_meta' );
wp_head(); //* we need this for plugins
genesis_markup( array(
'html5' =--> '',
'xhtml' => sprintf( '', implode( ' ', get_body_class() ) ),
'context' => 'body',
) );
do_action( 'genesis_before' );
genesis_markup( array(
'html5' => '<div>',
'xhtml' => '<div id="wrap">',
'context' => 'site-container',
)
);
do_action( 'genesis_before_header' );
do_action( 'genesis_header' );
do_action( 'genesis_after_header' );
genesis_markup( array(
'html5' => '<div>',
'xhtml' => '<div id="inner">',
'context' => 'site-inner',
)
);
genesis_structural_wrap( 'site-inner' );
<body onload="_googWcmGet(&039;number&039;, &039;1-555-555-2086&039;)">
window.onload=function() {
_googWcmGet('number', '1-555-555-2086');
};
<?php
add_filter( 'genesis_attr_body', 'themeprefix_add_attr' );
function themeprefix_add_attr( $attributes ) {
$attributes['onload'] = "_googWcmGet('number', '1-555-555-9999')";
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment