Title: Theme YAML &#8211; Use YAML instead JSON for your theme.json settings and styles
Author: landwire
Published: <strong>مارچ 17, 2022</strong>
Last modified: ستمبر 22, 2023

---

پلگ انز تلاش کریں

![](https://ps.w.org/theme-yaml/assets/banner-772-250.png?rev=2695658)

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

![](https://ps.w.org/theme-yaml/assets/icon.svg?rev=2695658)

# Theme YAML – Use YAML instead JSON for your theme.json settings and styles

 منجانب [landwire](https://profiles.wordpress.org/landwire/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/theme-yaml.1.3.0.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/theme-yaml/#description)
 * [جائزے](https://ur.wordpress.org/plugins/theme-yaml/#reviews)
 *  [انسٹالیشن](https://ur.wordpress.org/plugins/theme-yaml/#installation)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/theme-yaml/#developers)

 [معاونت](https://wordpress.org/support/plugin/theme-yaml/)

## تفصیل

Theme Yaml converts your theme.yaml file into theme.json so that you can configure
your theme with YAML. It has the benefit of being able to add comments and is more
concise than JSON. The generated theme.json is left as a one liner by default, so
that you can see it is generated. This however can be changed through the ‘theme_yaml_json_pretty_print’
filter.

The plugin automatically looks for a theme.yaml file in the active theme’s root 
folder when a page is loaded. If found, it will check its last modified time and
store the value in the database. If there are new modifications, the plugin parses
theme.yaml, converts it to JSON, and writes it to the theme.json file.

If the active theme is a child, it will also automatically run through this process
for its parent.

### Configuration

Add a theme.yaml file with your theme settings in your theme’s root directory. If
you already have an existing theme.json file, you can convert it to the YAML format
using an online tool. I personally use https://www.json2yaml.com/. The plugin will
then convert the theme.yaml file into JSON and save it to the theme.json file.

## انسٹالیشن

 1. Upload `theme-yaml` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## عمومی سوالات

### How does the plugin work?

The plugin automatically looks for a theme.yaml file in the active theme’s root 
folder when a page is loaded. If found, it will check its last modified time and
store the value in the database. If there are new modifications, the plugin parses
theme.yaml, converts it to JSON, and writes it to the theme.json file.

### Does it work for child as well as for parent themes?

If the active theme is a child, it will also automatically run through this process
for its parent and the child.

### Is there a way to pretty print the JSON file?

I left the generated theme.json file intentionally a one liner, so everybody can
see it is generated. But if you would like to change this you can use the following
filter to make the JSON file more readable:
 ` function pretty_print_json() { return
true; }

add_filter(‘theme_yaml_json_pretty_print’, ‘pretty_print_json’);
 `

## جائزے

![](https://secure.gravatar.com/avatar/16f83f29fa0e18e6804e389caf30e4b0da19de46ecb570873571191071fa6fa6?
s=60&d=retro&r=g)

### 󠀁[Very useful tool](https://wordpress.org/support/topic/very-useful-tool-104/)󠁿

 [Gyurmey](https://profiles.wordpress.org/gyurmey/) فروری 13, 2023 1 reply

Works really well!

![](https://secure.gravatar.com/avatar/127b0146d524b574fb7bc06e8fa0a31cf4216076e2d8171725e946f299572150?
s=60&d=retro&r=g)

### 󠀁[Really useful!](https://wordpress.org/support/topic/really-useful-263/)󠁿

 [Jakob Wiens](https://profiles.wordpress.org/jakobwiens/) اپریل 6, 2022 1 reply

This plugin comes in pretty handy when developing block themes – since handling 
an ever-growing theme.json file really sucks and you can’t even use basic features
like comments, etc. But no more, with "Theme YAML” i can finally write and maintain
readable global styles and theme settings without a hassle 🙂 Very easy to use, 
there are no settings: Just install, activate and you’re basically good to go!

 [ تمام 2 جائزے پڑھیں ](https://wordpress.org/support/plugin/theme-yaml/reviews/)

## شراکت دار اور ڈیویلپرز

“Theme YAML – Use YAML instead JSON for your theme.json settings and styles” اوپن
سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:

شراکت دار

 *   [ landwire ](https://profiles.wordpress.org/landwire/)

“Theme YAML – Use YAML instead JSON for your theme.json settings and styles” کا 
1 زبان میں ترجمہ کیا گیا ہے۔ تعاون کے لیے [مترجمین](https://translate.wordpress.org/projects/wp-plugins/theme-yaml/contributors)
کا شکریہ۔

[“Theme YAML – Use YAML instead JSON for your theme.json settings and styles” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/theme-yaml)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/theme-yaml/)، [ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/theme-yaml/)
کو چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/theme-yaml/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/theme-yaml/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

#### 1.3.0

Updated composer packages

#### 1.2.0

Added backup for theme.json

#### 1.1.1

Fixed readme formatting

#### 1.1.0

Changed settings to output the theme.json file in a more readable way. Also added
a filter to change the JSON encoding flags. Kindly suggested by Justin Tadlock in
his review of this plugin here: https://wptavern .com/new-plugin-for-writing-wordpress-
theme-json-files-via-yaml

#### 1.0.0

 * Initial Release of the plugin

## میٹا

 *  Version **1.3.0**
 *  Last updated **3 سال پہلے**
 *  Active installations **10+**
 *  WordPress version ** 5.8 یا اس سے جدید **
 *  Tested up to **6.3.8**
 *  PHP version ** 7.4 یا اس سے جدید **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/theme-yaml/) اور [Italian](https://it.wordpress.org/plugins/theme-yaml/).
 *  [اپنی زبان میں ترجمہ کریں](https://translate.wordpress.org/projects/wp-plugins/theme-yaml)
 * Tags
 * [settings](https://ur.wordpress.org/plugins/tags/settings/)[styles](https://ur.wordpress.org/plugins/tags/styles/)
   [theme](https://ur.wordpress.org/plugins/tags/theme/)[theme.json](https://ur.wordpress.org/plugins/tags/theme-json/)
   [yaml](https://ur.wordpress.org/plugins/tags/yaml/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/theme-yaml/advanced/)

## درجہ بندیاں

 4.5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/theme-yaml/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/theme-yaml/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/theme-yaml/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/theme-yaml/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/theme-yaml/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/theme-yaml/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/theme-yaml/reviews/)

## شراکت دار

 *   [ landwire ](https://profiles.wordpress.org/landwire/)

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/theme-yaml/)

## عطیہ دیں

کیا آپ اس پلگ ان کی ترقی میں معاونت کرنا چاہتے ہیں؟

 [ اس پلگ ان کو عطیہ دیں ](https://saschapaukner.de)