Skip to content

Commit 362a7ba

Browse files
author
Askupa Software
committed
Updating WordPress readme
1 parent d206dbc commit 362a7ba

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

readme.txt

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
=== WordPress Dynamic CSS ===
22
Contributors: Askupa Software
3-
Tags: dynamic css, css, customizer, get_theme_mod, css variables
3+
Tags: dynamic css, css, customizer, get_theme_mod, css variables, css compiler
44
Requires at least: 3.0
55
Tested up to: 4.4.2
6-
Stable tag: 1.0.0
6+
Stable tag: 1.0.1
77
License: GPLv3 or later
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

10-
Dynamic CSS compiler for WordPress
10+
Dynamic CSS compiler for WordPress themes and plugins
1111

1212
== Description ==
1313

@@ -19,8 +19,8 @@ Using the special dynamic CSS syntax you can write CSS rules with variables that
1919

2020
First, add this to your `functions.php` file:
2121

22-
```php
23-
// 1. Load the library
22+
<pre>
23+
// 1. Load the library (skip this if you are loading the library as a plugin)
2424
require_once 'wp-dynamic-css/bootstrap.php';
2525

2626
// 2. Set the callback function (used to convert variables to actual values)
@@ -32,29 +32,27 @@ wp_dynamic_css_set_callback( 'my_dynamic_css_callback' );
3232

3333
// 3. Enqueue the stylesheet (using an absolute path, not URL)
3434
wp_dynamic_css_enqueue( 'path/to/my-style.css' );
35-
36-
// 4. Nope, only three steps
37-
```
35+
</pre>
3836

3937
Then, create a file called `my-style.css` and write this in it:
4038

41-
```css
39+
<pre>
4240
body {
4341
background-color: $body_bg_color;
4442
}
45-
```
43+
</pre>
4644

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')`.
4846

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:
5048

51-
```css
49+
<pre>
5250
body {
5351
background-color: #fff;
5452
}
55-
```
53+
</pre>
5654

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)
5856

5957
**Useful Links**
6058

@@ -64,14 +62,13 @@ You can find detailed documentation on how to use Kirki on the [GitHub page](htt
6462

6563
== Installation ==
6664

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
7266

7367
== Changelog ==
7468

69+
= 1.0.1 =
70+
* Added support for loading compiled CSS as an external stylesheet
71+
7572
= 1.0.0 =
7673
* Initial release
7774

0 commit comments

Comments
 (0)