Home › Forums › Calendar Products › Events Calendar PRO › Template and Social Sahre
- This topic has 2 replies, 2 voices, and was last updated 9 years, 3 months ago by Barry.
-
AuthorPosts
-
January 20, 2015 at 9:16 am #935260mkrasmussenParticipant
I am using Events Calendar Pro.
My default theme has social sharing on all posts put these do not appear on Event posts.
I tried paying the code below in each event as well as in the HTML before/after in event settings display. And it does not work. This is the code my theme support told me I needed.
Can you tell me how I can get this to work?
<?php if ((is_single() OR Bunyad::options()->social_icons_classic) && Bunyad::options()->social_share): ?>
<div class=”post-share”>
<span class=”text”><?php _e(‘Share.’, ‘bunyad’); ?></span>
<span class=”share-links”>” class=”fa fa-twitter” title=”<?php _e(‘Tweet It’, ‘bunyad’); ?>”>
<span class=”visuallyhidden”><?php _e(‘Twitter’, ‘bunyad’); ?></span>
” class=”fa fa-facebook” title=”<?php _e(‘Share on Facebook’, ‘bunyad’); ?>”>
<span class=”visuallyhidden”><?php _e(‘Facebook’, ‘bunyad’); ?></span>
” class=”fa fa-google-plus” title=”<?php _e(‘Share on Google+’, ‘bunyad’); ?>” >
<span class=”visuallyhidden”><?php _e(‘Google+’, ‘bunyad’); ?></span>
<a href=”http://pinterest.com/pin/create/button/?url=<?php
echo urlencode(get_permalink()); ?>&media=<?php echo urlencode(wp_get_attachment_url(get_post_thumbnail_id($post->ID))); ?>” class=”fa fa-pinterest”
title=”<?php _e(‘Share on Pinterest’, ‘bunyad’); ?>” >
<span class=”visuallyhidden”><?php _e(‘Pinterest’, ‘bunyad’); ?></span>
” class=”fa fa-linkedin” title=”<?php _e(‘Share on LinkedIn’, ‘bunyad’); ?>”>
<span class=”visuallyhidden”><?php _e(‘LinkedIn’, ‘bunyad’); ?></span>
&name=<?php echo urlencode(get_the_title()) ?>” class=”fa fa-tumblr”
title=”<?php _e(‘Share on Tumblr’, ‘bunyad’); ?>” >
<span class=”visuallyhidden”><?php _e(‘Tumblr’, ‘bunyad’); ?></span>
&body=<?php echo rawurlencode(get_permalink()); ?>” class=”fa fa-envelope-o”
title=”<?php _e(‘Share via Email’, ‘bunyad’); ?>”>
<span class=”visuallyhidden”><?php _e(‘Email’, ‘bunyad’); ?></span>
</span>
</div>
<?php endif; ?>January 20, 2015 at 1:40 pm #935371BarryMemberHi mkrasmussen,
I tried paying the code below in each event as well as in the HTML before/after in event settings display. And it does not work. This is the code my theme support told me I needed.
So PHP code in particular cannot simply be added to the HTML fields or to the event description (or, rather, you can – but it won’t do anything).
In this case you would need to either override and customize our templates (see our Themer’s Guide for more on this topic!) or else you could make use of an appropriate action hook such as tribe_events_before_html and so avoid the need for overriding and customizing a template.
Often people find template overrides the easiest approach here, so that could be worth a try first of all 🙂
February 6, 2015 at 9:18 am #940547BarryMemberHi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!
-
AuthorPosts
- The topic ‘Template and Social Sahre’ is closed to new replies.