Last active
May 4, 2020 12:13
-
-
Save vfontjr/88bc108f6e6ed0da4035fafda3eec528 to your computer and use it in GitHub Desktop.
Source code for https://victorfont.com/adwords-call-tracking-for-genesis-themes/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body onload="_googWcmGet(&039;number&039;, &039;1-555-555-2086&039;)"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload=function() { | |
_googWcmGet('number', '1-555-555-2086'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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