Title: Custom CSS and JS
Author: pjdietz
Published: <strong>2010 ལོའི་ཟླ 2 ཚེས 5 ཉིན།</strong>
Last modified: 2010 ལོའི་ཟླ 5 ཚེས 20 ཉིན།

---

མཐུད་སྣེ་བཤེར་འཚོལ།

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/custom-css-and-js.svg)

# Custom CSS and JS

 རྩོམ་པ་པོ། [pjdietz](https://profiles.wordpress.org/pjdietz/)

[ཕབ་ལེན།](https://downloads.wordpress.org/plugin/custom-css-and-js.zip)

 * [ཞིབ་ཕྲ།](https://bo.wordpress.org/plugins/custom-css-and-js/#description)
 * [གདེང་འཇོག](https://bo.wordpress.org/plugins/custom-css-and-js/#reviews)
 *  [སྒྲིག་འཇུག](https://bo.wordpress.org/plugins/custom-css-and-js/#installation)
 * [ཡར་རྒྱས།](https://bo.wordpress.org/plugins/custom-css-and-js/#developers)

 [རམ་འདེགས།](https://wordpress.org/support/plugin/custom-css-and-js/)

## ཞིབ་བརྗོད།

[Custom CSS and JS](http://pjdietz.com/wordpress-plugins/custom-css-js/) allows 
you to add stylesheets and JavaScripts to any individual post by adding custom fields.
Both CSS and scripts can be either internal or external. Since this is a plugin,
the custom CSS and JavaScript are available to any theme used to display the post,
as long as the themes call “wp_head”.

### Using the Plugin

To use the plugin, add any combination of the following custom fields to your post.

**custom_css**
 Add an external stylesheet by adding a custom field with the name**
custom_css**. The value of the field should be the path to your css file.

**cusrom_css_code**
 Add an internal stylesheet by adding a custom field with the
name **custom_css_code**. Include your CSS code as the value. (Do not include the
style tags.)

**custom_js**
 Add an external JavaScript by adding a custom field with the name**
custom_js**. The value of the field should be the path to your script.

**custom_js_code**
 Add an internal JavaScript by adding a custom field with the
name **custom_js_code**. Include your JavaScript code as the value. (Do not include
the script tags.)

### Custom Fields Order

 1. The external styles and scripts are included before the internal ones.
 2. If you include multiple entries for a given field, the entries will be included
    in order.

### Okay, but what if I don’t like those tags?

Just edit custom-css-js.php and change the constants defined near the top of the
file.

### Note

This plugin only works with individual posts and pages. It does not work for list
pages (e.g., the index page, search results).

## སྒྲིག་འཇུག

 1. Unpack the download package.
 2. Upload folder to the “/wp-content/plugins/” directory
 3. Activate the plugin through the “Plugins” menu in WordPress

## གདེང་འཇོག

There are no reviews for this plugin.

## བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Custom CSS and JS” is open source software. The following people have contributed
to this plugin.

བྱས་རྗེས་འཇོག་མཁན།

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

[ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Custom CSS and JS” ཡིག་སྒྱུར་བྱོས།](https://translate.wordpress.org/projects/wp-plugins/custom-css-and-js)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/custom-css-and-js/),
check out the [SVN repository](https://plugins.svn.wordpress.org/custom-css-and-js/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/custom-css-and-js/)
by [RSS](https://plugins.trac.wordpress.org/log/custom-css-and-js/?limit=100&mode=stop_on_copy&format=rss).

## ཟུར་བརྗོད།

 *  Version **1.0**
 *  Last updated **ལོ 16 སྔོན།**
 *  Active installations **900+**
 *  WordPress version ** 2.8 ཡང་ན་དེ་ལས་མཐོ་བ། **
 *  Tested up to **2.9.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/custom-css-and-js/)
 * Tags
 * [css](https://bo.wordpress.org/plugins/tags/css/)[javascript](https://bo.wordpress.org/plugins/tags/javascript/)
   [post](https://bo.wordpress.org/plugins/tags/post/)[stylesheet](https://bo.wordpress.org/plugins/tags/stylesheet/)
 *  [མཐོ་རིམ་མཐོང་སྣང་།](https://bo.wordpress.org/plugins/custom-css-and-js/advanced/)

## གདེང་འཇོག

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/custom-css-and-js/reviews/)

## བྱས་རྗེས་འཇོག་མཁན།

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

## རམ་འདེགས།

Got something to say? Need help?

 [རམ་འདེགས་གླེང་སྟེགས་ལ་ལྟ།](https://wordpress.org/support/plugin/custom-css-and-js/)