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 in the <head> section | |
*/ | |
add_action('wp_head', 'google_tag_manager_head', 3 ); | |
function google_tag_manager_head() { ?> | |
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
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 | |
function includi_sottopost() { | |
global $post; ?> | |
<a class="linkfbshare" target="_blank" href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=<?php the_permalink(); ?>&amp;t=<?php the_title(); ?>" rel="nofollow" class="external" title="Condividi su Facebook"><img src="<?php bloginfo('template_directory'); ?>/images/facebook_share.png" width="70" height="20" alt="Facebook Sharing"/></a> | |
<a class="linkcommenta" href="<?php the_permalink() ?>#respond" rel="nofollow">Commenta:</a> <?php comments_popup_link('0', '1', '%'); | |
} ?> |
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
<a class="linkfbshare" target="_blank" href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=<?php the_permalink(); ?>&amp;t=<?php the_title(); ?>" rel="nofollow" class="external" title="Condividi su Facebook"> | |
<img src="<?php bloginfo('template_directory'); ?>/images/facebook_share.png" width="70" height="20" alt="Facebook Sharing"/></a> | |
<a class="linkcommenta" href="<?php the_permalink() ?>#respond" rel="nofollow">Commenta:</a> <?php comments_popup_link('0', '1', '%'); ?> |
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 Analytics | |
add_action( 'wp_head', 'custom_google_analytics', 99); | |
function custom_google_analytics() { | |
if (!is_user_logged_in()) { ?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-12345-6', 'auto'); |
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 Analytics | |
add_action( 'wp_head', 'custom_google_analytics', 99); | |
function custom_google_analytics() { ?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-12345-6', 'auto'); |
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> | |
jQuery( function($) { | |
$(this).bind("contextmenu", function(e) { | |
e.preventDefault(); | |
}); | |
}); | |
</script> |