最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - How do i remove "Powered by WordPress" from AMP?

programmeradmin2浏览0评论

how do I remove "Powered By Wordpress" from the AMP version of my website? It would be great if you suggest a CSS or Plugin for this. I use the basic AMP plugin.

how do I remove "Powered By Wordpress" from the AMP version of my website? It would be great if you suggest a CSS or Plugin for this. I use the basic AMP plugin.

Share Improve this question asked Apr 10, 2019 at 7:05 user148174user148174
Add a comment  | 

1 Answer 1

Reset to default 0

To remove “Powered by WordPress,” from the AMP plugin’s footer.php template file. Reference

This new file should reside at:

wp-content/themes/yourtheme/amp/footer.php

Footer.php

<footer class="amp-wp-footer">
    <div>
        <h2><?php echo esc_html( $this->get( 'blog_name' ) ); ?></h2>
        <a href="#top" class="back-to-top"><?php _e( 'Back to top', 'amp' ); ?></a>
    </div>
</footer>

This will ensure that Remove Powered WordPress AMP Plugin will still remain after the plugin is updated next time.

发布评论

评论列表(0)

  1. 暂无评论