Support » Plugin: AddToAny Share Buttons » Sharing wrong URL on homepage

  • The buttons on the home page of are linking to the first blog article in the feed below the fold.

    Have tested on local copy of site and confirmed same thing is happening.

    Have verified in all browsers.

    Have debugged and everything is working fine from Facebook Developer debugger.

    Not sure why it is grabbing the blog post url instead of the page url. What can I do?

    I forgot to mention it is working just fine on the rest of the site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I still have not figured out why the normal template function is resulting in the wrong link on the homepage, but after some additional research I found I can use the following snippet to manually override the share URL for the homepage template.

    <?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) {
        ADDTOANY_SHARE_SAVE_KIT( array("linkname" => "Example Page", "linkurl" => "") );
    } ?>
    Plugin Author micropat


    Oftentimes that’s the best way to do it on the homepage. What placement method were you using before exactly?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sharing wrong URL on homepage’ is closed to new replies.