Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Adds the Genesis Share icons after the entry but within the entry content container.
- *
- * @since 1.0.0
- *
- * @return null Return early for non-single events
- */
- add_action( 'tribe_events_single_event_before_the_content', 'events_prefix_entry' );
- function events_prefix_entry() {
- if ( !tribe_is_event() && !is_single() || ! function_exists( 'genesis_share_icon_output' ) ) {
- return;
- }
- global $Genesis_Simple_Share;
- echo '<div class="share-box"><h3 class="share-headline">' . __( 'If you liked this article, tell someone about it', 'yourtextdomain' ) . '</h3>';
- genesis_share_icon_output( 'after-entry', $Genesis_Simple_Share->icons );
- echo '</div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement