Support

Home Forums Event Espresso Premium Social Share not working on event pages (with Bridge Theme)

Social Share not working on event pages (with Bridge Theme)

Posted: April 4, 2017 at 8:00 pm

Viewing 9 reply threads


simonmarek

April 4, 2017 at 8:00 pm

Hi,

I use a shortcode with Bridge theme to add Social Share icons.
This works on all pages except our event pages.
eg…
working: https://www.aogp.com.au (see very bottom left of page)
not working: https://www.aogp.com.au (doesn’t show up)

Any advice?

Kind regards,

Simon


Josh

  • Support Staff

April 5, 2017 at 7:11 am

Hi Simon,

May I ask which plugin are you using that adds the Social Share icons, which shortcode, and what’s the URL of the page where it’s not working?


simonmarek

April 5, 2017 at 6:53 pm

Hi Josh,

Sorry, I pasted the wrong URL above. It should have read:
working: https://www.aogp.com.au (see very bottom left of page)
not working: https://www.aogp.com.au/events/mock-kfp-sydney/ (doesn’t show up)

The shortcode is [social_share_list] and is handled by the Bridge wordpress theme (eg wp-content/themes/bridge/includes/shortcodes/shortcode-elements/social-share-list.php

Thanks


Josh

  • Support Staff

April 5, 2017 at 8:26 pm

Why can I download a copy of the Bridge WordPress theme to investigate how its shortcode works?


simonmarek

April 5, 2017 at 8:51 pm

Is there a way I can send you a link privately?


Tony

  • Support Staff

April 6, 2017 at 2:54 am

Hi there,

You can send the link to support[at]eventespresso.com


Josh

  • Support Staff

April 6, 2017 at 9:00 am

You can add the following to your child theme’s functions.php file:

function my_bridge_add_espresso_events() {
    global $qode_options_proya;
    $qode_options_proya["post_types_names_espresso_events"] = 'espresso_events';
}
add_action('wp_head', 'my_bridge_add_espresso_events');

and that will make it so the Bridge theme adds its social share shortcode content to Event Espresso event pages.


simonmarek

April 6, 2017 at 9:35 pm

Thanks Josh, this fixed it. You are a legend!


Josh

  • Support Staff

April 6, 2017 at 9:47 pm

Hi again,

I’m glad the code worked for you. If you’re interested in what the code you added actually does, I can explain a bit. The theme’s code checks only for a few very specific post types before it adds the Social Share icons, and Event Espresso post are not one of post types it checks for. So the code adds Event Espresso posts to the list of post types that the theme checks for before it adds the Social Shares. If you found this solution helpful, please consider leaving a review for Event Espresso. Your review will help others find out about Event Espresso.


simonmarek

April 6, 2017 at 10:34 pm

That makes sense, thanks for the information.

Viewing 9 reply threads

The support post ‘Social Share not working on event pages (with Bridge Theme)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso