[WordPress] 外掛分享: Title Tagline for Genesis

首頁外掛目錄 › Title Tagline for Genesis
WordPress 外掛 Title Tagline for Genesis 的封面圖片
10+
安裝啟用
尚無評分
3442 天前
最後更新
問題解決
WordPress 4.0+ v1.0 上架:2016-10-10

內容簡介

此外掛僅適用於使用 Genesis Framework 或子佈景主題 的網站。

文章標題下額外標語

透過在文章編輯頁面提供的自訂 metabox,輕鬆地在文章標題下方加入標語,提升文章閱讀性。

允許在頁面或自訂文章類型中使用標語

當然,也可以在頁面和各種文章類型中加入標語。只需要在 functions.php 中加入以下篩選器,再加上希望添加的文章類型即可。非常簡單!

add_filter( 'genesis_title_tagline_post_types', 'genesis_add_title_tagline_post_types' );
function genesis_add_title_tagline_post_types( $types ){
$types[] = 'page';
$types[] = 'custom_post_type';
return $types;
}
樣式設定

若需要新增自製 CSS 樣式至標語,可以參考以下語法,例如透過更改不透明度。

.entry-title-tagline{ opacity: 0.8; }

更多資訊

追蹤開發者的 @Twitter 帳號
其他 與 Genesis Framework 相容的 WordPress 外掛

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Title Tagline for Genesis」→ 直接安裝(推薦)

原文外掛簡介

This plugin will only work if you are using Genesis Framework or Child Themes.
Extra Tagline below Post Title
Improve your blog post readability by adding title tagline below your post title which can be added easily via custom metabox available on the post edit dashboard page.
Allow Tagline on Page or Custom Post Types
Of course you can add tagline on pages and post types too. Just add the filter below on your functions.php with the post type you’ll want to be added. Easy!
add_filter( 'genesis_title_tagline_post_types', 'genesis_add_title_tagline_post_types' );
function genesis_add_title_tagline_post_types( $types ){
$types[] = 'page';
$types[] = 'custom_post_type';
return $types;
}
Styling
If you need to add custom css to title tagline, you can use something like this one which changes the opacity.
.entry-title-tagline{ opacity: 0.8; }
More information

Follow the developer @Twitter
Other Genesis Framework Compatible WordPress plugins

延伸相關外掛

文章
Filter
Apply Filters
Mastodon