You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ A library for generating static stylesheets from dynamic content, to be used in
30
30
## Overview
31
31
32
32
**WordPress Dynamic CSS** is a lightweight library for generating CSS stylesheets from dynamic content (i.e. content that can be modified by the user). The most obvious use case for this library is for creating stylesheets based on Customizer options. Using the special dynamic CSS syntax you can write CSS rules with variables that will be replaced by static values using a custom callback function that you provide.
33
+
**As of version 1.0.2** this library supports multiple callback functions, thus making it safe to use by multiple plugins/themes at the same time.
Copy file name to clipboardExpand all lines: readme.txt
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ Dynamic CSS compiler for WordPress themes and plugins
15
15
The most obvious use case for this library is for creating stylesheets based on Customizer options.
16
16
Using the special dynamic CSS syntax you can write CSS rules with variables that will be replaced by static values using a custom callback function that you provide.
17
17
18
+
**As of version 1.0.2** this plugin supports multiple callback functions, thus making it safe to use by multiple plugins/themes at the same time.
19
+
18
20
### Basic Example
19
21
20
22
First, add this to your `functions.php` file:
@@ -23,15 +25,17 @@ First, add this to your `functions.php` file:
23
25
// 1. Load the library (skip this if you are loading the library as a plugin)
24
26
require_once 'wp-dynamic-css/bootstrap.php';
25
27
26
-
// 2. Set the callback function (used to convert variables to actual values)
28
+
// 2. Enqueue the stylesheet (using an absolute path, not a URL)
0 commit comments