Install AMP for WordPress
Install AMP in about 5 minutes for your WordPress site. Simply follow these steps:
1) Install the AMP WordPress plugin by Automattic
2) Activate the plugin – what it will do is append /amp on all your pages but what it won’t do is redirect mobile visitors to your /amp pages
3) Submit your AMP pages to Google e.g. you need to append an /amp/ to your usual site URL
It normally takes a day or two for your AMP WordPress pages to appear in Google.
Remove Powered WordPress AMP Plugin
Remove Powered WordPress AMP Plugin – How to remove the powered by WordPress footer in the Accelerated Mobile Pages WordPress plugin. – The plugin authors haven’t made it easy to do this but here is the answer.
You first have to create folder named amp inside your theme. (You may already have this folder.) Inside this amp folder, create a new file called footer.php.
Copy and paste everything from the AMP plugin’s footer.php template file. Currently (AMP Version 0.4.2), it is exactly this:
<
footer
class
=
"amp-wp-footer"
>
<
div
>
<
h2
><?
php
echo esc_html( $this->get( 'blog_name' ) ); ?></
h2
>
<
p
>
<
a
href="<?php echo esc_url( __( 'https://wordpress.org/', 'amp' ) ); ?>"><?
php
printf( __( 'Powered by %s', 'amp' ), 'WordPress' ); ?></
a
>
</
p
>
<
a
href
=
"#top"
class
=
"back-to-top"
><?
php
_e( 'Back to top', 'amp' ); ?></
a
>
</
div
>
</
footer
>
To remove “Powered by WordPress,” remove lines 4–6, or add whatever you want in there.
This new file should reside at:
wp-content/themes/yourtheme/amp/footer.php
This will ensure that Remove Powered WordPress AMP Plugin will still remain after the plugin is updated next time.