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

CSS Theme Override

描述

If you’ve ever wanted to control how a particular part of your page or posts looks without having to modify the theme files or stylesheets,
this is a simple plugin that allows you to do that.

Once installed and activated, you’ll have a new settings panel in the WordPress admin that will provide you with a text area block
where you can include any styling you’d like to use, and a second input field that allows you to insert a comma delimited list of page
or post IDs to apply these styles to.

Alternatively, you can enter ‘ALL’, and have your styles applied on every page/post.

Bug Reports or Feature Requests
https://trello.com/b/9Bio6kHl

Follow me on Twitter
https://twitter.com/jcummings1974

安裝

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Visit the CSS Override section of the settings menu.
  4. Enter the id or class style that you want to use as an override, without the style tags.
  5. Choose a specific page/post ID, or enter ‘ALL’, and save.
  6. Visit your page in the browser to view your style override in action.

常見問題

What restrictions are there on the styling you can add?

None that I can think of.

Why isn’t the styling showing up?

Make sure that when you enter your styles in the options panel, that you haven’t included the style tags, which the plugin adds for you.
Make sure that you clear/update any caching plugin that you may be using. If you have doubts as to whether your style is being injected
in to the page, view the source of your page and look for the css you’ve supplied in the head section of the HTML for that page.

評價

2016年9月3日
Wonderful! It was just the plugin I was looking for. Simply to use and powerful!
2016年9月3日
I just wanted to delete the background image only from the front page. Installed, wrote down the new css, set the front page id only for the override. DONE! (with no test to achieve the best results: it simply worked immediately!)
閱讀全部4個評價

貢獻者及開發者

“CSS Theme Override” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 CSS Theme Override 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.1.2

  • WordPress 4.0 compatibility release

1.1.1

  • Improved instructions in the settings panel
  • Clarified the “Enter CSS Style” error in the admin when incorrect text is entered in the form field.
  • Appended an !important to the custom class defined to insure that style is applied.

1.1

  • Added the ability to use the ‘ALL’ page id to have the changes apply to all pages/posts

1.0

  • Initial release