Created
August 29, 2020 04:27
-
-
Save Kishorchandth/fe5684fcd6a23e90bd3b6d951ea2dc8f to your computer and use it in GitHub Desktop.
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
/** | |
* This PHP will load only on blog post | |
*/ | |
function add_this() { | |
if( is_single ( ) ) { | |
?> | |
/** | |
* Follow this step: | |
* #1 - visit the link -http://prntscr.com/u7ukyw | |
* #2 - Add this src - http://prntscr.com/u7ul9j | |
*/ | |
<script type="text/javascript" id="addthis" defer src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5f48848b8840c49e"></script> | |
<?php | |
} | |
} | |
add_action( 'wp_footer', 'add_this', 100 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment