
內容簡介
簡而言之,這個外掛會對 AMP 外掛進行自訂修改。
可以在此處自訂 AMP 外掛的設定:/wp-admin/customize.php?customize_amp=1
將自訂選單加入 AMP…可以透過(/wp-admin/nav-menus.php)進行更新
根據相似類別新增相關文章。可以使用以下語法更改分類:define('PS_AMP_RELATED_TAXONOMY', 'category');
使用以下語法在 AMP 檢視中加入 Google Analytics:define('PS_AMP_GA_ANALYTICS', 'UA-xxxxxxxx-x');
使用以下語法覆寫文章類型支援:define('PS_AMP_ADDITIONAL_POST_TYPES', 'events,news,locations,wpseo_locations,tribe_events');
使用以下語法停用相關文章:define('PS_AMP_DISABLE_RELATED_POSTS', true);
如果沒有圖片,使用站點圖示作為 AMP 元數據圖像
新增必要的 CSS 樣式
外掛標籤
開發者團隊
原文外掛簡介
In short, this plugin make custom modifications to the AMP plugin.
The AMP plugin settings can be customized here: /wp-admin/customize.php?customize_amp=1
Add a custom menu to AMP… update it through (/wp-admin/nav-menus.php)
Add related articles based on similar categories. Taxonomy can be changed using…. define(‘PS_AMP_RELATED_TAXONOMY’, ‘category’);
Add Google Analytics to AMP view using…. 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’);
Disable Related Posts Using…. define(‘PS_AMP_DISABLE_RELATED_POSTS’, true);
Use Site Icon for AMP metadata image if no image present
Added required CSS for these additions
