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 | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Customize search form input box text | |
| add_filter( 'genesis_search_text', 'sp_search_text' ); | |
| function sp_search_text( $text ) { | |
| return esc_attr( 'Search my blog...' ); | |
| } |
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_action( 'init', 'cd_register_shortcode' ); | |
| /** | |
| * Register shortcode with the theme | |
| */ | |
| function cd_register_shortcode() { | |
| add_shortcode( '404-search', 'cd_search_shortcode' ); | |
| } |
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
| @media only screen and (min-width: 960px) { | |
| /* Flexible Widgets | |
| --------------------------------------------- */ | |
| .flexible-widgets .widget { | |
| float: left; | |
| margin-left: 3%; | |
| } |
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
| jQuery(document).ready(function($) { | |
| $('input').focusin(function() { | |
| input = $(this); | |
| input.data('place-holder-text', input.attr('placeholder')) | |
| input.attr('placeholder', ''); | |
| }); | |
| $('input').focusout(function() { | |
| input = $(this); |
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
| jQuery(function( $ ){ | |
| $('.flexslider').flexslider({ | |
| animation: "slide", | |
| // pausePlay: true | |
| pauseOnHover: true | |
| }); | |
| }); |
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_filter( 'acf/load_field', 'mytheme_set_field_name' ); | |
| function mytheme_set_field_name( $field ){ | |
| if( is_admin() ){ | |
| $screen = get_current_screen(); | |
| if( $screen->id == 'acf-field-group' ) | |
| return $field; |
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 | |
| /** | |
| * Set default Genesis Theme Options | |
| * | |
| * @author Joshua David Nelson, josh@joshuadnelson.com | |
| */ | |
| add_filter( 'genesis_theme_settings_defaults', 'jdn_theme_settings' ); | |
| function jdn_theme_settings( $defaults ) { | |
| $defaults = array( | |
| 'update' => 1, |