lancecarr
Forum Replies Created
-
To do that would violate the policies regarding AMP pages in that they must be predominantly the same content as the original non-amp page.
If you did do that you would just end up with a bunch of warnings in webmaster tools informing you that the content of the amp page differs greatly from the original and as such will not be indexed.
@rburan,
It simply means that while you were using the plugin, Google indexed your AMP pages or some of them.
Now you have deleted the plugin or stopped using it, those pages are not generated any more so don’t exist.
So now when in Google you click on those pages they go to a 404 because, the page no longer exists.
All you have to do is wait for a while and Google will drop those pages out of the index.
The other alternative is to set up a 301 redirect on your site sending the amp pages to the original pages.@jianpey,
There is a possibility your browser is causing the re-direct rather than the plugin on the site itself.
Try clearing any cookies you have from the site in your browser and try again or use another browser.I have tried the site and it is loading correctly.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Validator FailsThanks!
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Validator FailsNot that I know of!
I don’t even know what it is.Just to be sure I disabled all plugins on the site and the problem is still there.
Then I changed the theme to a couple of different ones including a default WordPress theme and the problem stayed there.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Validator FailsNo it is not caused by plugins.
I have disabled all plugins except for the AMP plugin and the WP AMP plugin and the errors still occur.I have disabled the theme being used and tried others themes and it still occurs.
The URL being tested is https://captivebrains.com/amp/
The errors are:
-The tag ‘script’ is disallowed except in specific forms.
Line 14 column 1On that amp page the meta description is coming form the most recent post added to the site and not the correct description for the page.
—————————————–
The error regarding incorrect meta titles thread is here:
https://www.ads-software.com/support/topic/meta-titles-and-description-home-page/The adjusted code (written by @adpawl) to add to the .php file is this:
2 months, 1 week ago
Simple fix, need testing and adopt
accelerated-moblie-pages.php file:
add_rewrite_rule(
‘amp/?$’,
index.php?amp’,
‘top’
);
change to:add_rewrite_rule(
‘amp/?$’,
‘index.php?amp&page_id=’ . get_option( ‘page_on_front’ ),
‘top’
);and add:
function disable_canonical_redirect_for_front_page( $redirect ) {
if ( is_page() && $front_page = get_option( ‘page_on_front’ ) ) {
if ( is_page( $front_page ) )
$redirect = false;
}
return $redirect;
}
add_filter( ‘redirect_canonical’, ‘disable_canonical_redirect_for_front_page’ );In the plugin settings you have to tell the plugin your are using a static homepage and select which page is the home page.
In the Homepage tab Homepage Support and Front Page must be selected as ON.
Then under Select Page as Front Page select the static home page.
Save changes then go to WordPress Settings/ Permalinks and resave the permalinks, this refreshes the front page.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Validator FailsAlso for the Home page on that site still getting the wrong meta description in the page source code.
This is an old issue that someone else posted a solution to that still has not been incorporated into the plugin code.
Try going to Settings / Permalinks and just hitting Save to see if that corrects it.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Meta Titles and Description Home pageSorry to tell you guys but no, that update did NOT fix the problem.
To fix it I just pasted the code from this thread back into the accelerated-moblie-pages.php file that was posted by @adpawl… again and fixed it myself.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to fix invalid stylesheet error ?Try flushing your cache.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Meta Titles and Description Home pageWoohoo!
That’s is totally fixed!When can we expect that those changes to the .php file will be updated?
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Meta Titles and Description Home page@adpawl,
Thanks for the suggestion and it actually works but here is the problem.
The Home page now has two meta description tags although the correct meta title is displaying on my test site.The first meta description is being created by pulling in the first sentence or so of the text of the page.
The second one may or may not be getting pulled in from All-in-One SEO.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Meta Titles and Description Home page@cybr Thanks so much for taking the time to look at this and offer a solution.
I just followed your instructions on two sites with different themes.
The AMP plugin still just pulls in the meta title and description from the most recent page or post on the site.
Dang!
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Meta Titles and Description Home pageI am using All-in-One SEO and WP-Social.
This test site displays the same behavior and again, All-in-One SEO and WP-Social.
https://captivebrains.com/amp/