The site I am working on is http://fortworthfotofest.com/events/. I found the following code from a previous inquiry and inserted it into my child theme’s functions.php to add share buttons to the posts, but I can’t figure out how to get this to also extend to my events.
> // Add Social Sharing after the single post content
> // =============================================================================
> function x_add_social_sharing ( $content ) {
> if ( is_singular('post') ) {
> echo do_shortcode('[share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
> }
> }
> add_action('x_before_the_content_end', 'x_add_social_sharing');
Additionally, the share buttons on Essential Grid are not functioning properly when edited through EG Skin Editor. Below is a screenshot of what the grid looks like - I want the icons to function as share buttons on hover.
Also, each event has it’s own Eventbrite page, so I’d like the ‘Register Now’ button to be able to hyperlink to each individual link. Currently, the ‘REGISTER NOW’ button is custom meta. I’ve tried to edit the meta data in each post to hyperlink out to the event’s page on Eventbrite by posting
<a href="https://www.eventbrite.com/e/fort-worth-foto-fest-successful-real-estate-photography-tickets-43449519683" target="_blank">REGISTER NOW</a>
in the available space, but it tries to link internally to
http://fortworthfotofest.com/events/%3Ca%20href=%22https:/www.eventbrite.com/e/fort-worth-foto-fest-successful-real-estate-photography-tickets-43449519683%22%20%20target=%22_blank%22%3EREGISTER%20NOW%3C/a%3E
Any help would be greatly appreciated.