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
/** | |
* Add Add Google Tag Manager script on Genesis Framework | |
* | |
* @author Anand Kumar | |
* @link http://www.blogsynthesis.com/add-google-tag-manager-to-wordpress/#genesis-framework | |
* | |
*/ | |
add_action('genesis_before', 'google_tag_manager'); | |
function google_tag_manager() { ?> |
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
/** | |
* Add Add Google Tag Manager script on Thesis Theme Framework | |
* | |
* @author Anand Kumar | |
* @link http://www.blogsynthesis.com/add-google-tag-manager-to-wordpress/#thesis-theme-framework | |
* | |
*/ | |
function limit_front_page() { | |
global $query_string; |
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
/*** Facebook Comment for Single Posts ***/ | |
add_action('genesis_before_comments', 'facebook_comments'); | |
/*** More info at www.blogsynthesis.com/?p=892 ***/ | |
function facebook_comments() { | |
if (is_single()) { ?> | |
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="5" data-width="600"></div> | |
<?php } | |
} |
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
<script type="text/javascript"> | |
google_ad_client = "ca-publisher-id", | |
if (window. innerWidth> = 800) { | |
google_ad_slot = " ad-unit-1 "; | |
google_ad_width = 728; | |
google_ad_height = 90; | |
} Else if (window.innerWidth <400) { | |
google_ad_slot = " ad-unit-2 "; | |
google_ad_width = 300; | |
google_ad_height = 250; |
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
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=483949534986562"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk'));</script> |
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
/* Image Header - Partial Width | |
------------------------------------------------------------ */ | |
.header-image #title-area, | |
.header-image #title, | |
.header-image #title a { | |
display: block; | |
float: left; | |
height: 90px; | |
overflow: hidden; |
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
/*** Google+ Comment for Genesis Framework ***/ | |
add_action('genesis_before_comments', 'google_plus_comments'); | |
/*** More info at http://www.blogsynthesis.com/?p=1072 ***/ | |
function google_plus_comments() { | |
if (is_single()) { ?> | |
<div id="google-plus-comments"> | |
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> | |
<div id="plusonecomments" style="width: 600px;height: 300px;"></div> | |
<script type="text/javascript"> | |
window.setTimeout(function() { |
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
/*** | |
* Google+ comments on WordPress | |
* More info: http://www.blogsynthesis.com/?p=1072 | |
***/ | |
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> | |
<div id="plusonecomments"></div> | |
<script type="text/javascript"> | |
window.setTimeout(function() { | |
var id = 'plusonecomments'; | |
var divWidth = document.getElementById(id).offsetWidth; |
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
/* | |
* Add Sharebar Box on Single Posts - Genesis | |
* Tutorial link: http://www.blogsynthesis.com/?p=1090 | |
* @author Anand Kumar | |
*/ | |
// Enqueue sticky sharebar script | |
add_action( 'wp_enqueue_scripts', 'blogsynthesis_sb_enqueue_script' ); | |
function blogsynthesis_sb_enqueue_script() { | |
wp_enqueue_script( 'sticky-menu', get_stylesheet_directory_uri() . '/js/sticky-sharebar.js', array( 'jquery' ), '', true ); |
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
/** Add rel="next" and rel="prev" to Genesis Framework **/ | |
function custom_post_navigation() | |
{ | |
?> | |
<div class="prev-next"> | |
<div class="nav-prev"> | |
<?php previous_post_link('%link', '%title'); ?> | |
</div> | |
<div class="nav-next"> | |
<?php next_post_link('%link', '%title'); ?> |
OlderNewer