| @@ -1,5 +1,5 @@ | ||
| 1 | -Customify [](https://travis-ci.org/pixelgrade/customify) | |
| 1 | +Customify [](https://travis-ci.org/pixelgrade/customify) [](https://lima.codeclimate.com/github/pixelgrade/customify) [](https://lima.codeclimate.com/github/pixelgrade/customify) | |
| 2 | 2 | ======== |
| 3 | 3 | **A Theme Customizer Booster** |
| 4 | 4 | |
| 5 | 5 | With Customify, you can easily add Fonts, Colors, Live CSS Editor and other options to your theme. |
| @@ -188,9 +188,9 @@ | ||
| 188 | 188 | |
| 189 | 189 | |
| 190 | 190 | ### Conditional fields<a name="conditional_fields"></a> |
| 191 | 191 | |
| 192 | -Once with 1.2.3 version we've added support for conditional fields. This means that you can use the `show_if` argument | |
| 192 | +Along with version 1.2.3 we've added support for conditional fields. This means that you can use the `show_if` argument | |
| 193 | 193 | to display a field only when another field has a certain value. |
| 194 | 194 | |
| 195 | 195 | This [gist](https://gist.github.com/andreilupu/3a71618fb6d2ea2c2b1429544c667cd1) shows how this can be done. |
| 196 | 196 | |
| @@ -240,11 +240,11 @@ | ||
| 240 | 240 | ) |
| 241 | 241 | ) |
| 242 | 242 | ``` |
| 243 | 243 | |
| 244 | -The upper example will output a select which will change all the fields setted up in the `options` array. | |
| 244 | +The above example will output a select which will change all the fields configured in the `options` array. | |
| 245 | 245 | |
| 246 | -If you don't like the select type, at `choices_type` you can choose between `select`, `button` and an `awesome` radio select which allows you not only change de font-end options but also the preview button style. | |
| 246 | +If you don't like the select type, at `choices_type` you can choose between `select`, `button` and an `awesome` radio select which allows you to not only change the font-end options but also the preview button style. | |
| 247 | 247 | |
| 248 | 248 | Wanna have a preset like this? |
| 249 | 249 | |
| 250 | 250 |  |
| @@ -378,9 +378,9 @@ | ||
| 378 | 378 | |
| 379 | 379 | |
| 380 | 380 | ### Font Selector<a name="font_selector"></a> |
| 381 | 381 | |
| 382 | -In 1.3.0 We introduced the new font selector, it works with live preview only and it has this possible configs: | |
| 382 | +In 1.3.0 we introduced the new font selector, it works with live preview only and it has this possible configs: | |
| 383 | 383 | |
| 384 | 384 | ``` |
| 385 | 385 | 'headings_font' => array( |
| 386 | 386 | 'type' => 'font', |
| @@ -458,12 +458,33 @@ | ||
| 458 | 458 | } |
| 459 | 459 | add_filter( 'customify_theme_fonts', 'theme_add_customify_theme_fonts' ); |
| 460 | 460 | ``` |
| 461 | 461 | |
| 462 | +# Developer Love | |
| 463 | + | |
| 464 | +We know developers are a special kind of breed and they need special kinds of treats. That is why we have introduced options dedicated to them. | |
| 465 | + | |
| 466 | +### Reset Buttons | |
| 467 | + | |
| 468 | +In the plugin's settings page (*WP Dashboard > Settings > Customify*) you will find a checkbox called **Enable Reset Buttons** that once activated will show a new Customizer section called **Customify Toolbox** and also introduce buttons in each section or panel configured via the plugin. | |
| 469 | + | |
| 470 | +All these buttons will reset the options to their default values. | |
| 471 | + | |
| 472 | +### Continuous Default Values | |
| 473 | + | |
| 474 | +If you want to go even further, there is a nuclear option. Simply define the `CUSTOMIFY_DEV_FORCE_DEFAULTS` constant to `true` and everywhere the default value will be used. You can play with the values in the Customizer and the live preview will work, but no value gets saved in the database. | |
| 475 | + | |
| 476 | +Add this in your `wp-config.php` file: | |
| 477 | +```php | |
| 478 | +define( 'CUSTOMIFY_DEV_FORCE_DEFAULTS', true); | |
| 479 | +``` | |
| 480 | + | |
| 462 | 481 | ## License |
| 463 | 482 | |
| 483 | +GPLv2 and later, of course! | |
| 484 | + | |
| 464 | 485 | ## Thanks! |
| 465 | 486 | This plugin also includes the following libraries: |
| 466 | 487 | |
| 467 | 488 | * Select 2 - https://select2.github.io/ |
| 468 | 489 | * Ace Editor - https://ace.c9.io/ |
| 469 | -* React jQuery Plugin - https://github.com/natedavisolds/jquery-react | |
| 490 | +* React jQuery Plugin - https://github.com/natedavisolds/jquery-react | |