WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
Share Buttons on Front Page share post not Homepage? (4 posts)

  1. melanie
    Member
    Posted 4 months ago #

    I just installed your plugin and I love it. I was able to edit the buttons - fabulous.

    The ONLY thing that might stop me from using the plugin is that the share buttons on the front page link to the homepage. Is there any way that the share buttons can link to their associated post excerpt?

    https://wordpress.org/plugins/add-to-any/

  2. micropat
    Member
    Plugin Author

    Posted 4 months ago #

    Hmm... That's how AddToAny works by default: sharing buttons on the homepage share the respective post. Something's amiss.

    Can you first troubleshoot by temporarily switching to the default theme and disabling other plugins? If you're still stuck with the issue, point us to your site or let us know what you have installed.

  3. h4cky
    Member
    Posted 4 months ago #

    Hello, I have the same issue.

    The only active plugin on my site is Jetpack for infinite scroll functionality.

    I've even to add the following IF:

    if (is_home()) {
    $args['linkurl'] = get_home_url();
    }

    before $kit_html .= ADDTOANY_SHARE_SAVE_BUTTON( $args ); which originally is on line 149.

    Additionally to that I tried to change the way which ADDTOANY_SHARE_SAVE_BUTTON function generate the links and the last approach was with involving setTimeout for delayed execution and changing the link.

    Of course none of the above ways did not work.

    Sincerely,
    Ivelin "h4cky" Georgiev

  4. micropat
    Member
    Plugin Author

    Posted 4 months ago #

    @h4cky it looks like you're *trying* to share the homepage, which is different than Melanie's issue. Can you point to the site and explain what you would like to achieve exactly? It's probably a good idea to start your own new topic. :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.