jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

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

Open kspilarski opened this issue 5 years ago • 12 comments

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

kspilarski avatar Dec 07 '20 17:12 kspilarski

Facing the same issue. Any update on this?

MuhammedSwalihct avatar Jan 09 '21 09:01 MuhammedSwalihct

I am experiencing the same issue. But I not only have %%footer%% appearing at the end of my site but below the footer my whole site is displayed a second time showing the posts that are not displayed above. Is there any way to solve this?

manuelschwartze avatar Feb 09 '21 14:02 manuelschwartze

@jeherve It's been so long since this error has been reported and I can confirm that it still exists. Is there any fix for this?

MuhammedSwalihct avatar Mar 07 '21 14:03 MuhammedSwalihct

@MuhammedSwalihct We have no fix yet, but we'll update this issue when we do.

jeherve avatar Mar 08 '21 07:03 jeherve

Same case in 30379576-hc.

kspilarski avatar Jun 29 '21 06:06 kspilarski

Had another case of this in 30568234-HC

JessBoctor avatar Jul 10 '21 19:07 JessBoctor

Another one on 29248498-hc

carinapilar avatar Jul 30 '21 12:07 carinapilar

Another case: 32210412-hc

retnonindya avatar Oct 27 '21 02:10 retnonindya

Encountered in #32882400-hc on Twenty Twenty-One theme.

donalirl avatar Nov 27 '21 22:11 donalirl

Same case in 34262156-hc.

kspilarski avatar Feb 19 '22 11:02 kspilarski

Same case in 5553761-zd

samgiannangeli avatar Sep 16 '22 17:09 samgiannangeli

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 3553352-zen
  • [ ] 5553761-zen

github-actions[bot] avatar Sep 16 '22 17:09 github-actions[bot]