Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

WP Add Custom CSS

Описание

WP Add Custom CSS allows you to add custom CSS to the whole website and to individual posts, pages and custom post types (such as Woocommerce products).
The CSS rules applied to the whole website will override the default stylesheets of your theme and plugins, while the CSS rules applied to specific pages, posts or custom post types will override the main stylesheet too.

You can edit the main stylesheet from the the «Add custom CSS» settings page.
The plugin also creates a new «Custom CSS» box in the editing area to add custom CSS to specific posts, pages and custom post types.

Скриншоты

  • Add custom CSS to the whole website.
  • Add custom CSS to specific posts.
  • Add custom CSS to specific pages.
  • Add custom CSS to specific custom post types (such as Woocommerce products).

Установка

Автоматическая установка

  1. Go to Plugins > Add New > Upload and select the .zip file from your hard disk
  2. Click the «Install now» button
  3. Активируйте плагин используя меню ‘Плагины’ в WordPress

Ручная установка

  1. Upload the plugin folder to the /wp-content/plugins/ directory via ftp
  2. Активируйте плагин используя меню ‘Плагины’ в WordPress

Часто задаваемые вопросы

How do I apply custom CSS to the whole website?

Once the plugin is installed and activated, from your dashboard navigate to «Add custom CSS», and write the CSS rules in the textarea.

How do I apply custom CSS to a specific post or page?

Once the plugin is installed and activated, you will find a new box called «Custom CSS» in your post/page editing area.

How do I apply custom CSS to a specific custom post type?

Once the plugin is installed and activated, from your dashboard navigate to «Add custom CSS», check the desired custom post types and save. You will find a new box called «Custom CSS» in your custom post type editing area.

The «Custom CSS» box is not displaying, why?

Click on the «Screen option» link from your post/page editing area and be sure the «Custom CSS» option is checked.

Отзывы

02.11.2022
Meno male che ci hai pensato tu! Mi son sempre domandato perché non l'abbiano implementata di default una funzione così! Grazie
04.02.2022
I was trying to figure out a way to add unique CSS to a line of products to make the pages look different than the 'regular' line of products. This allows me to add a field in each product and then copy the product or copy and paste the code when needed. Wokrking in WP 5.9 with WooCommerce.
30.10.2020
Helped me quite a bit with removing CSS that loaded everywhere but was only needed on a couple pages. One request, when enabling the "Products" or any other available "Available post types" if possible it would be great to have a box where you can add CSS to just like the "CSS rules" in the "Main CSS" section that would allow you to provide CSS and have it load for only those post types. So if you had "Products" as an available post type, you enable it, and it adds a CSS box where you can input CSS and it would only load that CSS on those post types. Because right now, when enabling a post type, like for "products" it seems to add a custom CSS box in every single product page, which of course when you have thousands of products, you are not going to add the custom CSS to each product.
Посмотреть все 85 отзывов

Участники и разработчики

«WP Add Custom CSS» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«WP Add Custom CSS» переведён на 11 языков. Благодарим переводчиков за их работу.

Перевести «WP Add Custom CSS» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.1.6

  • Updated code editor
  • Added text wrapping to code editor
  • Fixed compatibilty issues with WPBakery Frontend Editor

1.1.5

  • Changed default code editor
  • Advanced code editor is now resizable
  • Fixed textarea direction for RTL languages

1.1.4

  • Fixed compatibility issue with The Events Calendar

1.1.3

  • Fixed WordPress 5 compatibility issues
  • Fixed Gutenberg compatibility issues
  • Updated uninstall method
  • Minor improvements

1.1.2

  • Fixed CodeMirror compatibility issues

1.1.1

  • Fixed uninstall hook

1.1.0

  • Added CodeMirror text editor

1.0.1

  • Fixed issues with ssl on some server configurations

1.0.0

  • Added support for custom post types

0.9.7

  • Fixed minor bug

0.9.6

  • Fixed WPML bug

0.9.5

  • Improved css output for single posts and pages

0.9.4

  • Fixed > rendering issue

0.9.3

  • Fixed minor bug

0.9.2

  • Fixed minor bug
  • Minor layout changes

0.9.1

  • Fixed double quotes rendering issue

0.9

  • First release