Custom CSS for Pages and Posts

September 20, 2013

Custom CSS for Pages and Posts Plugin

This plugin adds a metabox to all post and page edit screens ( and optionally to

This plugin adds a metabox to all post and page edit screens ( and optionally to
custom post type edit screens ) that allows the user specify custom CSS for that
page or post. All it does is wrap your CSS in tags
and then inserts the block into the section of your page/post. Pretty simple.

Installation

  1. If you use FTP to upload your plugins, unzip the zip file and upload the resulting directoy to /wp-content/plugins/
    If you use the automatic uploader, there’s no need to unzip the file first.

  2. Activate the plugin through the ‘Plugins’ menu in WordPress

You will now see a new metabox on all edit screens for posts and pages.

Screenshots

  1. New metabox with Custom CSS text area

    New metabox with Custom CSS text area

FAQ

Q: How do I enable this for my custom post types?
A: Add this line to your theme’s functions.php file and change POST_TYPE to the name of your post type.

add_post_type_support( ‘POST_TYPE’, ‘ahjira-custom-css’);

Examples:

add_post_type_support( ‘book’, ‘ahjira-custom-css’);
add_post_type_support( ‘event’, ‘ahjira-custom-css’);
add_post_type_support( ‘product’, ‘ahjira-custom-css’);

For more information, please visit the plugin’s home page at:
http://ahjira.com/plugins/custom-css-for-pages-and-posts

Changelog

1.1

• Updated for auto-update
• Refined the code for better performance

1.0

• Initial release

Details

  • Version: 1.1
  • Active installations: 600
  • WordPress Version: 3.5
  • Tested up to: 3.6.1

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars

Tags