このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

WP Post Styling

説明

特定の投稿や固定ページにだけ適用されるカスタムスタイルを記述するフィールドを、編集画面に追加します。

固定ページや投稿、カスタム投稿タイプにカスタムスタイルを設定できます。カスタムスタイルは、スクリーン用、モバイル用、印刷用に分かれています。また、よく使うスタイルをライブラリに登録しておくこともできます。

スタイルライブラリの使い方:

  1. 設定ページでスタイルを追加します。
  2. スタイルを適用したい記事を開きます。
  3. スタイルボックスは空白のままにして、ドロップダウンからライブラリ登録済のスタイルを選択します。
  4. 記事を更新または公開します。

スタイルライブラリから選択したスタイルは、すでに記述済のスタイルを常に上書きします。ライブラリ内のスタイルを一部変更してページに設定したい場合は、そのスタイルを選択して一旦ページを保存してから、カスタムスタイルのボックス内で編集してください。

デフォルトでは、登録済のカスタムスタイルを編集しても、すでにそのスタイルを適用してある投稿や固定ページには影響しません。この仕様はオプションで変更できます。

注意: カスタムスタイルはアーカイブページには適用されません。単一の投稿または固定ページにだけ有効です。

このプラグインの有用性は、使用しているテーマのフレキシビリティと、ユーザーの CSS の知識に依存します。

スクリーンショット

  • WP Post Styling 設定ページ
  • WP Post Styling カスタムスタイル ボックス

インストール

  1. /wp-content/plugins/ ディレクトリに wp-post-styling フォルダーをアップロードします
  2. WordPress のプラグイン メニューでプラグインを有効化します
  3. 設定 > WP Post Styling を開きます
  4. 必要に応じて、WP Post Styling 設定を調整します。
  5. 投稿や固定ページ用のカスタムスタイルを設定します

FAQ

CSS についてあまりよく知らないのですが、それでもこのプラグインを使えるでしょうか?

このプラグインを活用するには、CSS の知識が必要です。WordPress のテーマで使われるスタイルは多種多様なので、あなたがどのようなスタイルを必要とするかを予測するのは非現実的です。

追加したカスタムスタイルがブログ上に反映されません。なぜでしょうか?

推測ですが、利用中のテーマが WordPress の wp_head 関数を使用していない可能性があります。このプラグインが機能するためには、テンプレート内に wp_head 関数が必要です。

評価

2022年6月2日 1 reply
I would have given this plugin a 4 or possibly even a 5 star rating had the latest upgrade NOT broken my ability to create NEW Posts, Pages, and Downloads. (I use Delightful Downloads 1.6.6 to provide download management to my visitors.) I'm really tired of my websites constantly undergoing "maintenance" (code for developer intervention) because of hastily released updates to code attempting to keep up with constant upgrade releases from the core application. So readers of this review should also consider how much effort (including finances) they are willing to put into the WordPress platform as well as plugins to extend its functionality. The concept is awesome - the execution... Meh!
2017年1月26日
Makes it so easy to style a specific post. Very straightforward & hassle-free Thank you for the great plugin.
2016年9月3日
Hi Joe, your "CSS-Enhancement" PlugIn works perfect together with all kind of "custom content" WP-PlugIn: Types, Reusable Text Blocks, Custom Post Widget etc. ... GREAT compatibility architecture!! Also your mobile style support is good. Please continue your work & maintenance support for this PlugIn!! Best regards
6件のレビューをすべて表示

貢献者と開発者

WP Post Styling はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“WP Post Styling” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“WP Post Styling” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.3.2

  • Bug fix: Nonce required without a POST submission event broke creating new pages.

1.3.1

  • Fix CSRF security issue & sanitization.

1.3.0

  • Incorporate CSS editor from 4.9
  • Fix issue when rendering a page without a post object
  • Add activation hook execution for update cycle & version number

1.2.11

  • Accessibility: duplicate IDs
  • Update headings hierarchy
  • If option to pull styles directly from library enabled, don’t display note

1.2.10

  • Updated function prefixing
  • Misc. minor updates
  • Fix textdomain issues

1.2.9

  • Removed some code for UI compatibility with WP previous to 2.7
  • Added some missing textdomains
  • Updated UI to match other plug-in UIs.
  • Updated code usage
  • Improved escaping

1.2.8

  • PHP Notice when updating styles with format selector disabled
  • Updated “Tested to” & Copyright date
  • No longer claiming support for WordPress versions 2.5 – 2.9.x. May work anyway.

1.2.7

  • Added languages: Irish Gaelic, Japanese
  • New feature: Use styles directly from the library.

1.2.6

  • Miscellaneous wpdb changes, updated coding style.
  • Use of wpdb->prepare where appropriate.
  • Minor style changes.
  • Added plug-in page header image.
  • Fixed a couple PHP notices

1.2.5

  • Revised style editing layout to increase text box for editing custom styles.
  • Bug fixes: removed PHP notices.

1.2.4

  • Added support for custom post types (thanks to Jordi for suggestion)

1.2.3

  • Clean up on deprecated calls
  • Switch post meta to private
  • Placed admin styles into separate file
  • Bug fix: Custom styles would periodically disappear from post.

1.2.2

  • Added stripslashes so that styles which require quotes will be consistently usable. (Background images, :before and :after, etc.)

1.2.1

  • Added option to delete CSS in the style library

1.2.0

  • Added Changelog
  • Added ability to edit CSS in the style library
  • Updated post interface to use post-2.6 drag-and-drop options
  • Made translation ready

1.1.0

  • Added a database to store pre-determined style groups.
  • Corrected a few layout bugs.