Viewing 1 replies (of 1 total)
  • Plugin Author micropat

    (@micropat)

    That’s very odd, but it looks like some long-forgotten backend customization. AddToAny is loading on all pages, but given those settings, something else on the site’s backend is preventing the buttons HTML from outputting on some pages. It appears the site has been like this for years.

    One thing to check is whether the share buttons are manually disabled on those pages by editing one of those pages and seeing if “Show sharing buttons” is unchecked under the AddToAny panel (which you may have to enable in Preferences > Panels to see).

    If that’s not it, either 1) some custom PHP code is intentionally removing the buttons (or additional content in general), or 2) there’s a bug in the theme or another plugin that’s preventing additional content being added to posts/pages.

    You can check for #1 by searching the site’s code for A2A_SHARE_SAVE_add_to_content. If you find that line in a file outside the add-to-any directory, that’s probably the culprit.

    You can check for #2 by seeing if the Append Content plugin works. Once activated, go to Settings > Append Content, add some content, “Save Your Content”, then “Save Publishing Settings”.

    If Append Content also fails to work on those pages with missing share buttons, you should pinpoint the root cause by temporarily switching to one of the default “Twenty” themes and deactivating all other plugins until Append Content works or share buttons appear.

    Importantly, the share buttons that are displaying seem to be hardcoded into the site’s theme (or via another plugin). The standard buttons you have enabled in AddToAny settings are not appearing anywhere, otherwise you’d see the div.addtoany_content parent element. It seems probable that someone manually placed the PHP code for share buttons and also disabled the standard share buttons from being added to content (#1).

Viewing 1 replies (of 1 total)
  • The topic ‘Buttons not showing on most pages’ is closed to new replies.