Mô tả
Thêm CSS tùy chỉnh vào trang web của bạn mà không gặp vấn đề.
Một Plugin WordPress đơn giản để thêm CSS tùy chỉnh và đè lên style mặc định của Plugin và Theme. Plugin này được thiết kế dành cho những người quản lý cần thêm CSS riêng vào trang web của họ. Style được tạo bởi plugin vẫn hiển thị ngay cả khi đổi theme.
New in Version 4.0.5
- AMP Support Added!
- Tested for WP version 5.8.1
About AMP Support
This plugin no longer enqueues your saved styles in a “pseudo-file”, but rather prints the styles directly into the <head>
element. This allows for better caching, and also processing by AMP plugins.
Features
- AMP Support
- Kiểm soát tùy chỉnh (xem trước)
- Code Syntax Highlighter
- Code linting (kiểm tra lỗi)
- Không cần cấu hình
- Giao diện đơn giản được dựng dựa trên UI WordPress
- Hầu như không ảnh hưởng hiệu suất trang web
- Không có query database phức tạp
- Tài liệu chi tiết
- Cho phép quản trị viên truy cập vào mạng lưới WP Multisite
Usage
-
Navigate to Appearance > Custom CSS in the Admin Menu
-
Enter in valid CSS styles
-
Click “Update Custom CSS”
-
View your changes in the Front End of your website
Help
Cài đặt
Cài đặt Simple Custom CSS đơn giản như các Plugin WP khác:
-
Download Simple Custom CSS from WordPress.org.
-
Giải nén tệp .zip.
-
Tải thư mục Plugin (simple-custom-css/) vào trong thư mục wp-content/plugins.
-
Đi đến Bảng điều khiển Plugin và tìm Plugin vừa được tải lên, “Simple Custom CSS” trong danh sách.
-
Click “Activate Plugin.”
Đánh giá
Người đóng góp & Lập trình viên
“Simple Custom CSS Plugin” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng góp“Simple Custom CSS Plugin” đã được dịch qua 30 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.
Dịch “Simple Custom CSS Plugin” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
4.0.5
* AMP Support. Thanks, @westonruter!
* Tested for compatibility with WP version 5.8.1
4.0.4
* Tested for compatibility with WP version 5.4.1
4.0.3
* Tested for compatibility with WP version 5.3
4.0.2
* Use WP’s CodeMirror on settings page
* Tested for compatibility with WP version 5.1.1
* Tested for compatibility with PHP version 7.2
4.0.1
* Fixed bug with broken editor styles on older versions of WP.
4.0
* New Customizer Control (still compatible with older WP versions)
* Added colors and linting to the Settings Page
* Updated hooks to replace hyphens with underscores
* Tested for WPCS compliance
* Tested for compatibility with WP version 4.9.4
3.3
* Added support for https://
* Added base support for Danish language. Thanks @ThomasDK81!
* Tested for compatibility with WP version 4.4.1
3.2
* Tested for compatibility with WP 4.1
* Improved architecture to reduce the number of queries. Thanks @dannyvankooten!
3.0.1
* Tested for compatibility with WP 3.9.1
* Sidebar “Update CSS” button added
3.0
* Added Sytnax Highlighter
* Removed Need for “Allow Quotation Marks” checkbox
* Removed plugin attribution text
* Minor styling changes. Thanks @kucrut!
2.5
* Fixed issue with WP installs in subdirectories. Thanks @lopo!
* Tested for compatibility with WP 3.8.1
2.0
* Added option to allow Double Quotes in CSS
* Tested for compatibility with WP 3.8
1.2.1
* Tested for compatibility with WP 3.7.1
* Code update to conform fully with WP coding standards
1.2
* Give Admins (not just Super Admins) access to the plugin
* Correcting Credit error
* Minor Bugfixes
1.1.1
* Allowing the “>” direct child selector.
1.1
* Removed unneeded hidden input
* Added Action Hooks
* Added cleanup on deletion
* Added author attribution option
* Added a more elegant method for adding CSS to the page:
Thay vì sử dụng print_scripts để chèn CSS vào HEAD, CSS style được tự động tạo trong simple-custom-css.php (tệp duy nhất cho plugin này), rồi thêm qua wp_enqueue_scripts, vì thế bây giờ nó sẽ xuất hiện trong HEAD như:
<link rel="stylesheet" href="http://yoursite.com/?sccss=1" />
…even though no css file is actually generated.
1.0
* Initial Release