Created
February 3, 2010 12:56
-
-
Save robotmay/293582 to your computer and use it in GitHub Desktop.
Custom wordpress link styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* How to modify the list of styles available to the user in the Wordpress/TinyMCE link feature */ | |
/* Find the following lines in wp-admin/includes/post.php, around lines 1426-1429 */ | |
... | |
'paste_remove_spans' => true, | |
'paste_strip_class_attributes' => 'all', | |
'wpeditimage_disable_captions' => $no_captions, | |
'plugins' => "$plugins" | |
/* Add the following line to the end of the array */ | |
'theme_advanced_styles' => "Name of style=class_name;Human readable name=class_name_2" | |
/* Your list should be separated as key/value, human readable name/the class name you want it to apply. | |
Separate each rule with a semi-colon. Your code should look like the following: | |
*/ | |
'paste_remove_spans' => true, | |
'paste_strip_class_attributes' => 'all', | |
'wpeditimage_disable_captions' => $no_captions, | |
'plugins' => "$plugins", | |
'theme_advanced_styles' => "Name of style=class_name;Human readable name=class_name_2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment