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
// 3. Enqueue the stylesheet (using an absolute path, not URL)
34
34
wp_dynamic_css_enqueue( 'path/to/my-style.css' );
35
-
36
-
// 4. Nope, only three steps
37
-
```
35
+
</pre>
38
36
39
37
Then, create a file called `my-style.css` and write this in it:
40
38
41
-
```css
39
+
<pre>
42
40
body {
43
41
background-color: $body_bg_color;
44
42
}
45
-
```
43
+
</pre>
46
44
47
-
In the above example, the stylesheet will be automatically compiled and printed to the `<head>` of the document. The value of `$body_bg_color` will be replaced by the value of `get_theme_mod('body_bg_color')`.
45
+
In the above example, the stylesheet will be automatically compiled and printed to the <head> of the document. The value of <code>$body_bg_color</code> will be replaced by the value of `get_theme_mod('body_bg_color')`.
48
46
49
-
Now, let's say that `get_theme_mod('body_bg_color')` returns the value `#fff`, then `my-style.css` will be compiled to:
47
+
Now, let's say that <code>get_theme_mod('body_bg_color')</code> returns the value <code>#fff</code>, then <code>my-style.css</code> will be compiled to:
50
48
51
-
```css
49
+
<pre>
52
50
body {
53
51
background-color: #fff;
54
52
}
55
-
```
53
+
</pre>
56
54
57
-
You can find detailed documentation on how to use Kirki on the [GitHub page](https://github.com/askupasoftware/wp-dynamic-css)
55
+
You can find detailed documentation on how to use this library on the [GitHub page](https://github.com/askupasoftware/wp-dynamic-css)
58
56
59
57
**Useful Links**
60
58
@@ -64,14 +62,13 @@ You can find detailed documentation on how to use Kirki on the [GitHub page](htt
64
62
65
63
== Installation ==
66
64
67
-
Follow the instructions on the plugin's [GitHub page](https://github.com/askupasoftware/wp-dynamic-css) for detailed explanation and examples
68
-
69
-
== Frequently Asked Questions ==
70
-
71
-
== Screenshots ==
65
+
Please follow the instructions on the plugin's [GitHub page](https://github.com/askupasoftware/wp-dynamic-css) for detailed explanation and examples
72
66
73
67
== Changelog ==
74
68
69
+
= 1.0.1 =
70
+
* Added support for loading compiled CSS as an external stylesheet
0 commit comments