This file contains hidden or 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
| <?php | |
| // Make TinyMCE editor awesome! | |
| function make_mce_awesome( $init ) { | |
| $init['theme_advanced_blockformats'] = 'h2,h3,h4,p'; | |
| $init['theme_advanced_buttons1_add'] = 'copy, cut, paste, redo, undo'; | |
| $init['theme_advanced_buttons2_add'] = 'anchor, hr, sub, sup'; | |
| $init['theme_advanced_disable'] = 'wp_help'; | |
| return $init; | |
| } | |
This file contains hidden or 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
| <?php | |
| // Customize Admin toolbar if you do desiced to keep it around... | |
| function change_toolbar($wp_toolbar) { | |
| $wp_toolbar->remove_node('comments'); | |
| $wp_toolbar->add_node(array( | |
| 'id' => 'myhelp', | |
| 'title' => 'Help', | |
| 'meta' => array('target' => 'help') | |
| )); | |
| $wp_toolbar->add_node(array( |
This file contains hidden or 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
| <?php | |
| /** | |
| * Random set of improvements | |
| */ | |
| /** | |
| * Tidy up the admin and remove options we don't need | |
| */ | |
| function db_clean_up_admin() { |
This file contains hidden or 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
| <?php | |
| //Add a custom admin dashboard welcome widget | |
| function custom_dashboard_widget() { | |
| echo '<h1>Welcome to your new WordPress site built by an awesome developer</h1>'; | |
| } | |
| function add_custom_dashboard_widget() { | |
| wp_add_dashboard_widget('custom_dashboard_widget', 'Integrity Welcomes You To WordPress!', 'custom_dashboard_widget'); | |
| } | |
| add_action('wp_dashboard_setup', 'add_custom_dashboard_widget'); |
This file contains hidden or 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
| .ir { | |
| border:0; | |
| font: 0/0 a; | |
| text-shadow: none; | |
| color: transparent; | |
| background-color: transparent; | |
| } |
This file contains hidden or 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
| // ---------------------------------------------------------- | |
| // A short snippet for detecting versions of IE in JavaScript | |
| // without resorting to user-agent sniffing | |
| // ---------------------------------------------------------- | |
| // If you're not in IE (or IE version is less than 5) then: | |
| // ie === undefined | |
| // If you're in IE (>=5) then you can determine which version: | |
| // ie === 7; // IE7 | |
| // Thus, to detect IE: | |
| // if (ie) {} |
NewerOlder