Title: Insert JavaScript and CSS
Author: Ryan
Published: <strong>جون 22, 2012</strong>
Last modified: جولائی 26, 2012

---

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

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

![](https://s.w.org/plugins/geopattern-icon/insert-javascript-css.svg)

# Insert JavaScript and CSS

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

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/insert-javascript-css.0.2.zip)

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

 [معاونت](https://wordpress.org/support/plugin/insert-javascript-css/)

## تفصیل

Easily add custom JavaScript or CSS to a single post or page.

When activated, a new icon is added to the post edit page near the icon you use

to add media to a post. Clicking the new icon brings up a screen where you can insert
JavaScript and CSS that will be included with the current post.

Anything entered into the text field on the JavaScript tab will be inserted into

the <head> section of your web page. Same is true of the CSS tab. This allows you
to insert arbitrary JavaScript and CSS into any post or page you would like without
having to resort to loading it on all pages.

## اسکرین شاٹس

 * [[
 * Icon added to the post media area
 * [[
 * Form to enter JavaScript
 * [[
 * Form to enter CSS

## انسٹالیشن

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

OR

 1. Use the plugin installer inside of WordPress

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

  Do I need to wrap in script or style tags?

Does’t matter. If you do, they’re left in place. If you don’t, they’ll be added.

  What about archive pages?

Unless you specifically tell it not to, this plugin will include any JavaScript 
or CSS
 included in a post on archive pages as well.

This can lead to conflicts. Take for example two posts, one with `body { background:
blue; }`
 and the other with `body { background: green; }`. Whichever post comes
last will take priority, but that’s probably not what you want.

If you add a custom field named `ijsc_single_only` to your post the JavaScript or
CSS will
 only add when `is_single()` is true. It doesn’t matter what value you 
put in `ijsc_single_only`, only that there is a value.

  Who can insert JavaScript or CSS

By default users with the capability upload_files are allowed to insert JavaScript

or CSS into posts. This seemed to be a logical choice as you need to have a certain
level of trust for users to upload files.

If you would like to change what capability is required you can edit the `IJC_CAPABILITY_REQUIRED`

constant defined in `insert-javascript-css.php` inside the plugin folder.

## جائزے

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

### 󠀁[Another awesome WP plugin](https://wordpress.org/support/topic/another-awesome-wp-plugin/)󠁿

 [fpats](https://profiles.wordpress.org/fpats/) فروری 7, 2017

Not.

 [ تمام 10 جائزے پڑھیں ](https://wordpress.org/support/plugin/insert-javascript-css/reviews/)

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

“Insert JavaScript and CSS” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان
میں حصہ لیا:

شراکت دار

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

[“Insert JavaScript and CSS” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/insert-javascript-css)

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

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

## چینج لاگ

#### 0.2

Fix so CSS and JS will show up in post types other than post.

#### 0.1

Initial release

## میٹا

 *  Version **0.2**
 *  Last updated **14 سال پہلے**
 *  Active installations **400+**
 *  WordPress version ** 3.0 یا اس سے جدید **
 *  Tested up to **3.4.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/insert-javascript-css/)
 * Tags
 * [css](https://ur.wordpress.org/plugins/tags/css/)[javascript](https://ur.wordpress.org/plugins/tags/javascript/)
   [page](https://ur.wordpress.org/plugins/tags/page/)[post](https://ur.wordpress.org/plugins/tags/post/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/insert-javascript-css/advanced/)

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

 4.1 out of 5 stars.

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

[Your review](https://wordpress.org/support/plugin/insert-javascript-css/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/insert-javascript-css/reviews/)

## شراکت دار

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

## معاونت

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

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

## عطیہ دیں

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

 [ اس پلگ ان کو عطیہ دیں ](http://www.nutt.net/donate/)