Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Customize the post info function */
- add_filter( 'genesis_post_info', 'bg_post_info' );
- function bg_post_info($post_info) {
- if ( is_singular( 'post' ) ) {
- $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] <a href="https://twitter.com/share" class="twitter-share-button" data-via="studiopress" data-lang="en">Tweet</a>
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>';
- }
- else {
- $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
- }
- return $post_info;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement