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 | |
| /* | |
| replacing the default "Enter title here" placeholder text in the title input box | |
| with something more descriptive can be helpful for custom post types | |
| place this code in your theme's functions.php or relevant file | |
| source: http://flashingcursor.com/wordpress/change-the-enter-title-here-text-in-wordpress-963 | |
| */ |
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 | |
| /* | |
| **** Load jQuery from Google CDN if available, local fallback if not **** | |
| ** Place in your theme's functions.php or relevant file. Edit local jQuery path if needed. | |
| ** Works as-is with WordPress Bones Theme v1.2 https://github.com/eddiemachado/bones (replace wp_enqueue_script( 'jquery' ); on line 142 | |
| ** reference: http://wp.tutsplus.com/tutorials/load-jquery-from-google-cdn-with-local-fallback-for-wordpress/ | |
| */ |
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 | |
| class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu { | |
| function start_lvl( &$output, $depth ) { | |
| //In a child UL, add the 'dropdown-menu' class | |
| $indent = str_repeat( "\t", $depth ); | |
| $output .= "\n$indent<ul class=\"dropdown-menu\">\n"; |
NewerOlder