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

  1. melanie
    Posted 1 year 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?


  2. micropat
    Plugin Author

    Posted 1 year 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
    Posted 1 year 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.

    Ivelin "h4cky" Georgiev

  4. micropat
    Plugin Author

    Posted 1 year 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. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Share Buttons by AddToAny
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.