Skip to content

Jetpack Infinite Scroll and AMP for WP plugin: %%footer%% text displayed #17999

Open
@kspilarski

Description

@kspilarski

Without Accelerated Mobile Pages for WP plugin, regardless of the setting I select in Jetpack infinite scroll, %%footer%% text does not appear at the bottom of my site.

Steps to reproduce the issue

  1. Install and activate Jetpack plugin.
  2. Install and activate Accelerated Mobile Pages for WP plugin and configure settings
  3. Go to Jetpack settings > Writing > Theme enhancements > Infinite Scroll and select either "Load more posts in page with a button" or "Load more posts as the reader scrolls down".
  4. Visit the front page of your site, scroll down to the bottom and %%footer%% text will be displayed

What I expected

%%footer%% text should not appear at the bottom of the site regardless of the option selected under Infinite Scroll.

What happened instead

In Jetpack settings > Writing > Theme enhancements > Infinite Scroll, only when setting “Load more posts using the default theme behavior”, %%footer%% text will be removed / will not appear at the bottom of the site.

Screenshots

  • In the browser inspector, %%footer%% shows:

<amp-next-page max-pages="0" class="i-amphtml-element i-amphtml-layout-container i-amphtml-next-page i-amphtml-built i-amphtml-layout" i-amphtml-layout="container"><div recommendation-box="" class="recommendation-box"><template type="amp-mustache"> </template><div> </div></div> <div footer=""> %%footer%% </div> </amp-next-page>

Screen Shot on 2020-12-07 at 15-30-14

  • when Infinite Scroll is set to either "Load more posts in page with a button" or "Load more posts as the reader scrolls down", %%footer%% is displayed at the bottom of the site:

Screen Shot 2020-12-07 at 18 48 48

  • when Infinite Scroll is set to “Load more posts using the default theme behavior”, %%footer%% text is removed / not displayed:

Screen Shot 2020-12-07 at 18 50 52

Reference: 3553352-zen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AMPCustomer ReportIssues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report"[Feature] Infinite Scroll[Pri] Low[Type] BugWhen a feature is broken and / or not performing as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions