[WordPress] 外掛分享: AMP Post Script

首頁外掛目錄 › AMP Post Script
WordPress 外掛 AMP Post Script 的封面圖片
10+
安裝啟用
尚無評分
1413 天前
最後更新
問題解決
WordPress 5.0+ v1.7.5 上架:2016-11-03

內容簡介

簡而言之,這個外掛會對 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 樣式

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「AMP Post Script」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon