Support » Plugin: Sharing buttons shortcode for Jetpack » Sharing buttons not displaying on Event page (from Event manager plugin)

  • Hi all
    I am maintaining this website – https://thehistorymasterclass.com – and have been asked to add social sharing to the individual events. The events are managed by the Event Manager plugin and Woocommerce.

    The Jetpack sharing option is working on the individual Ticket pages; however, when I selected that they appear on the Event pages they didn’t show up; so I have tried your plugin and still nothing shows when I add the [jpshare] shortcode.

    Please can you tell me what I may be missing? So you can see I have tried adding the shortcode to this event – https://thehistorymasterclass.com/event/history-masterclass-with-helen-castor-joan/ – I tried it in two places; at the top of the text and after the Buy Now button. But you will see that nothing is generated in the HTML.

    The “Buy Now” button is also a shortcode generated by the Maxbuttons plugin, so the page is able to render the shortcodes.

    I am running automptimise, however I am not optimising any javascript, so it is not a conflict with this plugin (and as it’s working on the Ticket pages, I would have thought it is something unconnected).

    Any help is greatly appreciated – I’m aware it may be a problem with the Jetpack plugin but I did not know if Jetpack Sharing works with the Event Manager plugin but I would have thought that your shortcode would for sure.

    Many thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    The [jpshare] shortcode will only be useful if you were able to display the buttons at the bottom of the event pages before.

    The real issue here is consequently that you do not manage to display sharing buttons on event pages.

    Could you go to Settings > Sharing, and make sure the buttons are enabled for Events too?

    Hi Jeremy.
    Thanks for your reply. Didn’t realise I was wrong to try and use the [jpshare] shortcode on an individual event page..assumed it would run as a normal page.

    The Events settings are on – so it appears it doesn’t work on the list of events page either; though the goal was to put the sharing on the individual events page, so whilst that’s odd it’s not actually a requirement.

    Could you let me know what the php code is that calls the sharing buttons? I could then create a new events page plugin and put it in there.
    Thanks

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Didn’t realise I was wrong to try and use the [jpshare] shortcode on an individual event page..assumed it would run as a normal page.

    The shortcode will work, but Jetpack sharing buttons have to be available on that page either through the settings under Settings > Sharing or through the checkboxes available in the page editor:
    http://i.wpne.ws/ihgF

    The Events settings are on – so it appears it doesn’t work on the list of events page either; though the goal was to put the sharing on the individual events page, so whilst that’s odd it’s not actually a requirement.

    Once you’ve activated sharing buttons on a page through the Sharing settings (“Events” checkbox for individual events, “Archive” pages checkbox for Events listings), Jetpack will try to hook the sharing buttons into any instance of the_content on the page. However, if your theme or your plugin doesn’t actually use that function to display event content, then the Jetpack sharing buttons won’t be displayed. That’s where the following should come in handy, as it will allow you to add the buttons anywhere in a loop, even if no event content is displayed on the page.

    Could you let me know what the php code is that calls the sharing buttons? I could then create a new events page plugin and put it in there.

    You can use the code mentioned here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sharing buttons not displaying on Event page (from Event manager plugin)’ is closed to new replies.