
內容簡介
使用 Templatic AMP WordPress 插件,只需在任何存檔、類別、詳細資訊或任何頁面 URL 後輸入「amp」關鍵字,它將顯示該頁面的 AMP 版本。
啟用此插件後,進入插件的設定>>,請確認您的網站啟用了「AMP」選項,才能使用此插件。
這裡有不同選項,如 AMP 主題、頁首代碼和頁尾代碼。
AMP 主題:預設會使用「templatic」範本,可在「plugins / Templatic-AMP / templates」此資料夾中取得。
啟用此插件後,您的網站會動態生成 AMP 版本。若要檢查 AMP 版本,需在您的頁面 URL 後加上「/amp」。例如,若您的頁面 URL 為「www.yourdomainname.com/page1/」,則需要如此添加「/amp」:「www.yourdomainname.com/page1/amp/」。這會以移動裝置最佳化內容快速加載頁面。
如果需要額外的樣式,您可以將樣式添加到「\plugins\Templatic-Google-AMP\templates\templatic\style.php」此檔案中。
在售前問題中,有一位客戶詢問「此主題是否支援 Google AMP?」。進一步了解後,我們發現 Google AMP 主要針對僅含內容、新聞和文章內容,以便用戶更快速閱讀新聞或文章,而非富含內容和圖像的動態頁面。
AMP 代表 Accelerated Mobile Pages,換句話說,它剝離了所有設計和功能來顯示僅含內容的頁面,以便盡快呈現給用戶。這確實意味著它不適用於具有豐富內容的高級 WordPress 網站。
然而,如果您希望在常規 WordPress 博客上使用 Google AMP 呢?我們查看了可能的選項,發現了一個官方 WordPress 插件,可在您的網站上啟用 Google AMP,但僅適用於博客文章。它無法用於不同的文章類型和分類、頁面或類別存檔。
我們認為 WordPress 頁面和 WordPress 文章在分類下應該能夠使用 Google AMP 的功能。
任何 WordPress 博客只要有幾百篇博客文章,可能需要將內容分成不同的分類,以保持組織性。例如,如果您運營一個具有數百篇文章的醫學門戶網站,可能會有不同的分類,例如疾病、營養等,以便更好地管理 WordPress 博客。
此外,一個內容豐富的 WordPress 博客可能有 15-20 個重要頁面,主要是內容,但它們不是 WordPress 文章。
因此,我們升級了這個插件,支援 WordPress 頁面和分類。
如何使用此 Templatic Google AMP WordPress 插件?
從上方連結下載 Templatic Google AMP 插件。
連接到您的 WordPress 儀表板(wp-admin),並導航到Plugins>> Add New Plugin >> 上傳插件 >> 現在上傳已下載的(Templatic-Google-AMP.zip)檔案 >> 點擊「立即安裝」
安裝成功後,點擊「啟用插件」。
啟用此插件後,進入插件的設定>> 並確認您的網站啟用了「AMP」選項,才能使用此插件。
這裡有不同選項,如 AMP 主題、頁首代碼和頁尾代碼。
AMP 主題:此選項用於更改範本。如果要更改預設範本「templatic」,請前往此
外掛標籤
開發者團隊
原文外掛簡介
To work with Templatic AMP plugin just type ‘amp’ keyword after any archive, category, details or any page URL it will display AMP version of that page.
After activating this plugin go to Plugin’s settings >> and make sure that “AMP” option is enabled at your site to use this plugin.
You can see different options here, like AMP theme, Header code and Footer code.
AMP Theme : By default, it will use ‘templatic’ template which is available on ” plugins/Templatic-AMP/templates ” this folder.
Once this plugin is activated at your site your site will dynamically generate AMP version. If you want to check the AMP version you need to append ” /amp ” after your page URL. if your page URL is ” www.yourdomainname.com/page1/ ” then you need to add the “/amp” after this URL as shown here. ” www.yourdomainname.com/page1/amp/ “. It will load the pages instantly with mobile optimised content at your site.
You can change style add your style into ” \plugins\Templatic-Google-AMP\templates\templatic\style.php ” this file, if you want additional styling.
One of our customers asked “ whether this theme supports Google AMP? ” in a pre-sales question. Which makes us curious and digging into it, it looks like Google AMP is targeted towards mostly the content-only, news and article content so that the user can read the news or article faster and not for the content and images rich, dynamic pages.
AMP means Accelerated Mobile Pages, in other words, it strips down all the design and functionality to show content only page to the user as soon as possible. Certainly, this means it is not built for advanced WordPress sites with heavy content.
However, what if you want to use Google AMP on a regular WordPress blog? We looked at the possible options and there exists an official WordPress plugin that lets enables google AMP on your site but only for blog posts. It wouldn’t work for different post types & taxonomies, pages or category archives.
We believe WordPress pages and WordPress posts under Taxonomies should be able to use the power of Google AMP.
Any WordPress blog once gets past few hundred blog posts might need to separate content into different taxonomies to keep things organised. For example, if you are running a Medical portal with hundreds of posts, you might have different taxonomies such as diseases, nutrition etc. so you can better manage your WordPress blog.
Also, a content heavy WordPress blog might have 15-20 important pages, mostly content but they are not a WordPress posts.
So we upgraded the plugin to support WordPress Pages and taxonomies.
We are happy to release an upgraded, Free WordPress plugin today that takes Google AMP further by supporting the missing pieces – WordPress Pages, Taxonomies and category archives.
How to use this Templatic Google AMP WordPress plugin?
Download this Templatic Google AMP Plugin from above link.
Connect to your WordPress dashboard (wp-admin) and navigate to Plugins >> Add New Plugin >> Upload Plugin >> Now upload the downloaded (Templatic-Google-AMP.zip) file >> Click on “ Install Now ”
Once you install this plugin successfully, click on “ Activate Plugin ”.
After activating this plugin go to Plugin’s settings >> and make sure that “ AMP ” option is enabled at your site to use this plugin.
You can see different options here, like AMP theme, Header code and Footer code.
AMP theme: This option is used to change the template. If you want to change the default template “ templatic ” then please go to this mentioned file location and place your template here.
File location: “ plugins\Templatic-Google-AMP\templates\ ”
Note: You need to place two files “header.php” and “ footer.php ” to your template files from the default template “ templatic ”
Header Code: if you want to use the Google Analytics for a header then you can place your code in this area.
Footer Code: if you want to use the Google Analytics for footer then you can place your code in this area.
Once this plugin is activated at your site your site will dynamically generate AMP version. If you want to check the AMP version you need to append “ /amp ” after your page URL. if your page URL is “ www.yourdomainname.com/page1/ ” then you need to add the “ /amp ” after this URL as shown here. “ www.yourdomainname.com/page1/amp/ ”. It will load the pages instantly with mobile optimised content at your site.
