[wordpress插件] AMP Post ScriptAMP后记脚本

wordpress 插件 文章 2020-02-17 21:10 515 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

In short, this plugin make custom modifications to the AMP plugin.

简而言之,此插件对AMP插件进行了自定义修改。

    • The AMP plugin settings can be customized here: /wp-admin/customize.php?customize_amp=1
    • 可以在此处自定义AMP插件设置:/wp-admin/customize.php?customize_amp=1

    • Add a custom menu to AMP… update it through (/wp-adminav-menus.php)
    • 向AMP添加自定义菜单…通过(/wp-adminav-menus.php)更新它

    • Add related articles based on similar categories.

    • 添加基于相似类别的相关文章。

      Taxonomy can be changed using….

      可以使用…来更改分类法。

      define(‘PS_AMP_RELATED_TAXONOMY’, ‘category’);

    • define('PS_AMP_RELATED_TAXONOMY','category');

    • Add Google Analytics to AMP view using….

    • 使用…将Google Analytics(分析)添加到AMP视图。

      define(‘PS_AMP_GA_ANALYTICS’, ‘UA-xxxxxxxx-x’);

    • define('PS_AMP_GA_ANALYTICS','UA-xxxxxxxx-x');

    • Override post type support using….

    • 使用...覆盖帖子类型支持。

      define(‘PS_AMP_ADDITIONAL_POST_TYPES’, ‘events,news,locations,wpseo_locations,tribe_events’);

    • define('PS_AMP_ADDITIONAL_POST_TYPES','事件,新闻,位置,wpseo_locations,tribe_events');

    • Disable Related Posts Using….

    • 使用...禁用相关帖子。

      define(‘PS_AMP_DISABLE_RELATED_POSTS’, true);

    • define('PS_AMP_DISABLE_RELATED_POSTS',true);

    • Use Site Icon for AMP metadata image if no image present
    • 如果没有图像,则将站点图标用于AMP元数据图像

    • Added required CSS for these additions
    • 添加了这些必需的CSS

安装步骤

    1. Upload post-script-amp folder to the /wp-content/plugins/ directory
    2. post-script-amp 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/amp-post-script.1.6.0.zip
-EOF-

AI助手支持GPT4.0