WordPress.org

Ready to get started?Download WordPress

Plugin Directory

SuperSlider-Perpost-Code

Write css and javascript code directly on your post edit screen on a per post basis. Meta boxes provide an easy way to enter custom code to each post.

Write css and javascript code directly on your post edit screen on a per post basis. Meta boxes provide a quick and easy way to enter custom code to each post. It then loads the code into your frontend theme header if the post has custom code. You may also display your custom code directly into your post with the custom_css or custom_js shortcode.

Features

  • easy use meta boxes for entering custom css and javascript
  • Only loads custom code for the specific post or page.
  • Customize the appearence or functionality of each page or post.
  • Stores the css and javascript codes into the postmeta table with hidden meta_keys.
  • All entered css will be active on this post.
  • All entered javascript will be active on this post.
  • Short code to display your custom code directly into the post.

The following options are available:

  • Show custom Css metabox on edit screens or turn it off.
  • Show custom Javascript metabox on edit screens or turn it off.
  • Set the minimum user level to be able to use the custom meta boxes.

Plugin integration

  • Automatically works well with Prettify GC Syntax Highlighter plugin. Good for front side syntax highlighting. loads 42k in 2 different js and css, loads for all pages, regardless of post having code.
  • Automatically works well with Google Syntax Highlighter for WordPress plugin. This plugin loads 44 k. in 14 different js and css files, though it is easy enough to prevent loading all of the js files,

Caveats - automatic syntax coloring

The following plugins will still work as expected, but useing the superslider-perpost-code shortcode will not be automatically colored. You will still need to use the code highlighter plugin as instructed. Which typically relies on a shortcode wrapped around your code in the post.

If you use a specific syntax highlighter and would like it to work nice with the SuperSlider-Perpost-Code plugin let me know.

Upgrade Notice

  • There are no special instructions for upgrading
  • deactivation of the plugin will not erase your custom code from the data base.

Requires: 2.6 or higher
Compatible up to: 3.4.2
Last Updated: 2012-11-17
Downloads: 1,412

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1