Support » Plugin: AddToAny Share Buttons » Sharing a My Profile page

  • Resolved pmterp

    (@pmterp)


    I’ve used ProfilePress to create a directory and clicking a member leads to their profile page which shares their details with the visitor.
    The URL of the page looks like: https://site.com/profile/johndoe/
    At the bottom of the page with that URL I have the addtoany share buttons but the link it shares is: https://site.com/my-profile/
    Is there a way to correct this so that it shares that page’s actual URL?

    • This topic was modified 3 months ago by pmterp.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author micropat

    (@micropat)

    ProfilePress avails its profiles through a shortcode (on a single /my-profile URL) instead of a standard custom post type (individual URLs), so only the single /my-profile URL is shared.

    To work around that and share your intended URLs, you can turn off the AddToAny plugin’s standard sharing on your profile page (Edit Page > AddToAny > uncheck “Show sharing buttons”), then add a “Custom HTML” block to the page like:

    <div class="a2a_kit a2a_kit_size_32 a2a_default_style">
        <a class="a2a_button_facebook"></a>
        <a class="a2a_button_twitter"></a>
        <a class="a2a_button_email"></a>
        <a class="a2a_dd"></a>
    </div>
    Thread Starter pmterp

    (@pmterp)

    Brilliant, thank you!

    genius, it worked like charm, i’ve been strugglin with this issue for several hours, thank you very much MICROPAT, you saved my day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.