• 關於 WordPress
    • 關於 WordPress
    • WordPress 香港中文版
    • 使用說明
    • 支援
    • 回饋
  • 登入
  • 註冊
跳到內容

WordPress.org

香港中文版

  • 首頁
  • 佈景主題
  • 外掛
  • Blog
  • Support
  • About
  • Get WordPress
  • 下載
  • 安裝
  • WordPress 常見問題
  • 團隊

外掛

  • 我的收藏
  • Beta測試
  • 開發者

這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

下載

Genesis Site Title Styles

由Jackie D'Elia and Ginger Coolidge
  • 詳情
  • 評價
  • 安裝
  • 支援
  • 開發

描述

This plugin adds a span tag around each word in the Genesis site title for separate styling with css. Styling is done with the nth-child() selector.

Style each word separately:

Style the first word:

.site-title span:nth-child(1) {
add your styles here
}

Style the second word:

.site-title span:nth-child(2) {
add your styles here
}

Style the third word:

.site-title span:nth-child(3) {
add your styles here
}

Read more about why we created the plugin here along with examples of how to style them.

安裝

This section describes how to install the plugin and get it working.

  1. Upload the entire genesis-site-title-styles folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s it! There is no settings panel for this plugin.

常見問題

Do this plugin require the Genesis Framework?

This plugin is designed for sites running on the Genesis Framework. While you could successfully activate the plugin on a non-Genesis site, it is useless as the code relies on Genesis-specific actions.

How do I know if the plugin is working?

After activating the plugin, each word in your site title should be wrapped in a span tag.

How can I style the title span tags?

Add this your style.css in the section for your site title. Your class name may be different than .site-title so substitute as needed.

.site-title span:nth-child(1) {
add your styles here
}

Above example would target the first word in the site title. Change the number in parenthesis to target another word, span:nth-child(2) would target the second word, and so on.

.site-title span:nth-child(2) {
color: #99d7da;
font-weight: 600;
}

Above example would change the color and font weight of the second word.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Genesis Site Title Styles” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • Jackie D'Elia
  • Ginger Coolidge
  • Carrie Dils

將 Genesis Site Title Styles 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

1.10

Replaced logic to recognize words that contain special characters, diacritical marks and symbols. The plugin now will wrap a span tag around everything separated by a space. Any extra spaces are removed.

For example: “BLANCO PRÍBAR®   INC.”

will become “BLANCO PRÍBAR® INC.” and then each word is wrapped in a span tag.

1.01

Edited instructions.

1.0

Released.

0.4

Added lower priority to filter to be sure it loads last.

0.3

Updated code to correct for h1/p tags. See Github

0.2

Changed description. Removed Genesis activation requirement.

0.1

  • Initial release.

其它

  • 版本:1.10
  • 最後更新:3 年之前
  • 運作中的安裝:300+
  • WordPress Version: 3.8.0 or higher
  • 已測試到版本:4.9.16
  • 語言:
    English (US)
  • 標籤:
    cssgenesislogosite titlespan
  • 進階顯示

評分

顯示全部
  • 5星 2
  • 4星 0
  • 3星 0
  • 2星 0
  • 1星 0
Log in to submit a review.

貢獻者

  • Jackie D'Elia
  • Ginger Coolidge
  • Carrie Dils

支援

最近兩個月解決了的問題:

1個中的0個

檢視支援論壇

捐贈

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於
  • 網誌
  • 寄存
  • 捐贈
  • 支援
  • 開發者
  • 參與專案
  • 學習
  • Showcase
  • 外掛
  • 佈景主題
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt Mullenweg
  • 隱私權政策
  • Public Code
  • @WordPress
  • WordPress

代碼就是詩歌。