Social sharing, Xstore vs native, adding other networks, etc.

This topic has 9 replies, 2 voices, and was last updated 7 years, 5 months ago ago by Olga Barlow

  • 8 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 25, 2016 at 12:22

    Hello,

    1) Could you send me the link to page where we’ll be able to see “native WP social sharing options” Because I’m not sure what you are talking about?

    2) Are you talking about VC element or about widget?

    Regards

    Avatar: RR123
    RR123
    Participant
    October 25, 2016 at 16:02

    Hi there,

    If I tick “Show buttons on” / “Posts” on /wp-admin/options-general.php?page=sharing I get your nice sharing buttons with the ugly ones added above them, which is right after the article:

    https://anonm.gr?1869.png

    They are ugly compared to yours, but they have some useful other social/msg’ing links that I need.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 26, 2016 at 07:58

    Hello,

    WordPress does not have share option bu default. Very likely you are using additional plugin to add this option.

    If you want to edit our function use functions.php of child child theme. Share function code you can find in xstore/framework/shortcodes.php , etheme_share_shortcode function.

    Regards

    Avatar: RR123
    RR123
    Participant
    October 26, 2016 at 13:43

    Ahaaa…. my bad. It’s a WP Jetpack thing. That plugin adds a Sharing page to WP Settings.

    Thanks for the path to make edits. Will any changes I make be overwritten by updates?

    Avatar: RR123
    RR123
    Participant
    October 26, 2016 at 13:45

    Or could I just copy that file, make changes and add the php to a new plugin folder and then activate it in wp-admin? But I guess that would create function clash confusion… (just trying to be creative!)

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 27, 2016 at 07:24

    Hello,

    You need to use child theme https://codex.wordpress.org/Child_Themes and copy our function to functions.php of child theme to add any changes. All the changes in parent theme will be rewritten.
    To be able to use this functions in child theme wrap our etheme_share_shortcode function (xstore/framework/shortcodes.php file) in “if function_exists” condition. We’ll also make this function pluggable in next update, so you won’t lose these changes.

    We’ll also add these share buttons in one of the next updates.

    Regards

    Avatar: RR123
    RR123
    Participant
    October 31, 2016 at 21:58

    Fabulous – thanks Olga. Makes sense – I hope to play with this in the coming days when we catch up with various dev delays at our end.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 1, 2016 at 11:53

    You are welcome!

    Regards

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.