Title: Custom CSS and JS
Author: pjdietz
Published: <strong>5. februar, 2010</strong>
Last modified: 20. maj, 2010

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# Custom CSS and JS

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

[Download](https://downloads.wordpress.org/plugin/custom-css-and-js.zip)

 * [Detaljer](https://da.wordpress.org/plugins/custom-css-and-js/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/custom-css-and-js/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/custom-css-and-js/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/custom-css-and-js/#developers)

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

## Beskrivelse

[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).

## Installation

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

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Custom CSS and JS” er open source-software. Følgende personer har bidraget til 
dette plugin.

Bidragsydere

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

[Oversæt “Custom CSS and JS” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/custom-css-and-js)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/custom-css-and-js/),
tjek [SVN repository](https://plugins.svn.wordpress.org/custom-css-and-js/), eller
abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/custom-css-and-js/)
via [RSS](https://plugins.trac.wordpress.org/log/custom-css-and-js/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0**
 *  Senest opdateret **16 år siden**
 *  Aktive installationer **900+**
 *  WordPress-version ** 2.8 eller højere **
 *  Testet op til **2.9.2**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/custom-css-and-js/)
 * Tags
 * [css](https://da.wordpress.org/plugins/tags/css/)[javascript](https://da.wordpress.org/plugins/tags/javascript/)
   [post](https://da.wordpress.org/plugins/tags/post/)[stylesheet](https://da.wordpress.org/plugins/tags/stylesheet/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/custom-css-and-js/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser](https://wordpress.org/support/plugin/custom-css-and-js/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/custom-css-and-js/)