[WordPress] 外掛分享: SEO Lite

首頁外掛目錄 › SEO Lite
WordPress 外掛 SEO Lite 的封面圖片
全新外掛
安裝啟用
尚無評分
1084 天前
最後更新
問題解決
v2.1.1 上架:2022-08-09

內容簡介

SEO Lite 是一個簡單輕量的 WordPress 插件,僅使用不到 80 行的前端程式碼即可自動新增以下標籤:

og:locale – 使用 get_locale()
og:site_name – 使用 get_bloginfo(‘name’)
og:title – 使用 wp_get_document_title()
og:description (在前台只會取得 200 個字元) – 首頁使用 get_bloginfo(‘description’),文章/頁面使用 get_the_excerpt(),分類/標籤頁面使用 get_the_archive_description()
og:url – 目前頁面的 URL
og:type – 文章/頁面使用 ‘article’,其他頁面使用 ‘website’
article:published_time – 文章/頁面使用 get_the_date(‘c’)
article:modified_time – 文章/頁面使用 get_the_modified_date(‘c’)
og:image – 文章/頁面使用特色圖片,首頁使用網站圖示
og:image:{type/width/height/alt} – 只有當有 ‘og:image’ 時才會新增此屬性 (如果有可用的話,還會新增 alt 屬性)

此外,SEO Lite 還提供一個設定頁面 (儀表板 > 設定 > SEO Lite),可以為所有頁面新增自訂的標籤,例如 Google Analytics、AdSense 等。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.1) 或搜尋安裝

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

原文外掛簡介

SEO Lite is meant to be that: lite. In under 80 lines of code on the frontend, SEO Lite adds the following tags:

og:locale – Uses get_locale()
og:site_name – Uses get_bloginfo(‘name’)
og:title – Uses wp_get_document_title()
og:description (trimmed to 200 chars) – Uses get_bloginfo(‘description’) on the front page, get_the_excerpt() for posts/pages, and get_the_archive_description() if availble on archive pages
og:url – URL of page
og:type – Uses ‘article’ on posts/pages and ‘website’ everywhere else
article:published_time – Uses get_the_date(‘c’) on posts/pages
article:modified_time – Uses get_the_modified_date(‘c’) on posts/pages
og:image – Uses featured image on posts/pages and the site icon on the front page
og:image:{type/width/height/alt} – Added if we have an ‘og:image’ (only adds ‘alt’ if availble)

Additionally, SEO Lite has a settings page (Dashboard > Settings > SEO Lite) where you can add custom tags for all pages (ie, google analytics, AdSense, etc).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon