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
add_filter( 'zephyr_header_gravatar_email', 'jk_change_intro_grav_email' ); | |
function jk_change_intro_grav_email( $email ) { | |
$email = email@email.com; | |
return $email; | |
} |
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
function our_team_speakers_labels( $args ) { | |
$labels['name'] = __( 'Speakers' ); | |
$labels['add_new_item'] = sprintf( __( 'Add New %s' ), __( 'Speaker' ) ); | |
$labels['add_new'] = _x( 'Add New', 'speaker' ); | |
$labels['singular_name'] = _x( 'Speaker', 'post type singular name' ); | |
$args['labels'] = $labels; | |
return $args; | |
} |
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
add_filter( 'projects_loop_columns', 'jk_projects_columns' ); | |
function jk_projects_columns( $columns ) { | |
$columns = 3; | |
return $columns; | |
} |
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
/** | |
* Check for IE. | |
* | |
*/ | |
if ( ! function_exists( 'is_ie' ) ) { | |
function is_ie ( $version = '6.0' ) { | |
$supported_versions = array( '6.0', '7.0', '8.0', '9.0', '10' ); | |
$agent = substr( $_SERVER['HTTP_USER_AGENT'], 25, 4 ); | |
$current_version = substr( $_SERVER['HTTP_USER_AGENT'], 30, 3 ); | |
$response = false; |
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
.widget_woothemes_our_team .columns-2, | |
.widget_woothemes_our_team .columns-3, | |
.widget_woothemes_our_team .columns-4, | |
.widget_woothemes_our_team .columns-5, | |
.widget_woothemes_our_team .columns-6 { | |
overflow: hidden; | |
zoom: 1; | |
} | |
.widget_woothemes_our_team .columns-2 .team-member, | |
.widget_woothemes_our_team .columns-3 .team-member, |
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
<?php | |
/** | |
* A template to display team member content | |
*/ | |
global $post; | |
?> | |
<?php | |
$team_member_email = esc_attr( get_post_meta( $post->ID, '_gravatar_email', true ) ); | |
$user = esc_attr( get_post_meta( $post->ID, '_user_id', true ) ); |
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
add_filter( 'projects_loop_columns', 'jk_projects_columns', 99 ); | |
function jk_projects_columns( $cols ) { | |
$cols = 3; | |
return $cols; | |
} |
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
function woo_projects_custom_fields( $fields ){ | |
$fields['select'] = array( | |
'name' => __( 'Select', 'projects' ), | |
'description' => __( 'Here\'s a select', 'projects' ), | |
'type' => 'select', | |
'default' => 'b', | |
'section' => 'info', | |
'options' => array( 'f' => 'Foo', 'b' => 'Bar' ) | |
); |
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
add_filter( 'woo_business_slider', '__return_false' ); // Disable the slider | |
add_filter( 'woo_business_features', '__return_false' ); // Disable Features display | |
add_filter( 'woo_business_testimonials', '__return_false' ); // Disable Testimonials display | |
add_filter( 'woo_business_blog', '__return_false' ); // Disable blog section |
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
remove_action( 'woo_homepage', 'woo_display_introduction', 5 ); |