Jetpack Infinite Scroll and AMP for WP plugin: %%footer%% text displayed
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
- Install and activate Jetpack plugin.
- Install and activate Accelerated Mobile Pages for WP plugin and configure settings
- 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".
- 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>
- 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:
- when Infinite Scroll is set to “Load more posts using the default theme behavior”, %%footer%% text is removed / not displayed:
Reference: 3553352-zen
Facing the same issue. Any update on this?
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?
@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 We have no fix yet, but we'll update this issue when we do.
Same case in 30379576-hc.
Had another case of this in 30568234-HC
Another one on 29248498-hc
Another case: 32210412-hc
Encountered in #32882400-hc on Twenty Twenty-One theme.
Same case in 34262156-hc.
Same case in 5553761-zd
Support References
This comment is automatically generated. Please do not edit it.
- [ ] 3553352-zen
- [ ] 5553761-zen