Adding social sharing buttons to single events

Home Forums Calendar Products Events Calendar PRO Adding social sharing buttons to single events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1214518
    James
    Participant

    Hello,
    I am using the7 theme and am trying to add social sharing on single events pages and came across this code to use:

    $share_buttons = presscore_display_share_buttons_for_post( ‘post’, array(‘echo’ => false));
    if ( $share_buttons ) {
    printf( ‘

    %s
    ‘, $post_tags . $share_buttons );
    }

    Can you tell me what file and where I would add this to have the buttons appear at the bottom of the event?
    Thank you!

    #1214616
    Cliff
    Member

    Hi, James.

    We do not provide support for integration with third-party themes’ features, but here’s a code snippet that may be helpful if you want to use Jetpack’s sharing feature:

    https://gist.github.com/cliffordp/36162128f190563c782c0e029cb915a4

    Best practice for adding custom code (like to implement a PHP snippet to modify The Events Calendar) is to create a functionality plugin, unless it’s something specific to your theme, in which case best practice is to make sure you’re using a child theme, then add the customization to your child theme’s functions.php file.

    Also, FYI, the code you shared looks incomplete unless it’s going to be used in one of your theme template files (i.e. not complete for using in functions.php).

    If you want to use your theme’s sharing buttons, please contact them for further assistance.

    I hope this information helps!

    #1225640
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding social sharing buttons to single events’ is closed to new replies.