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
//* Customize the login page (see https://premium.wpmudev.org/blog/customize-login-page/) | |
add_action('login_head', 'pasada_custom_login'); | |
function pasada_custom_login() { | |
echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('stylesheet_directory') . '/login.css" />'; | |
} | |
add_filter( 'login_headerurl', 'pasada_login_logo_url' ); | |
function pasada_login_logo_url() { | |
return get_bloginfo( 'url' ); | |
} |
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 favicons (created at http://realfavicongenerator.net/) | |
remove_action( 'wp_head', 'genesis_load_favicon' ); | |
add_action( 'wp_head', 'pasada_load_favicon' ); | |
function pasada_load_favicon() { | |
echo '<link rel="apple-touch-icon" sizes="57x57" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-57x57.png">'; | |
echo '<link rel="apple-touch-icon" sizes="60x60" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-60x60.png">'; | |
echo '<link rel="apple-touch-icon" sizes="72x72" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-72x72.png">'; | |
echo '<link rel="apple-touch-icon" sizes="76x76" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-76x76.png">'; | |
echo '<link rel="apple-touch-icon" sizes="114x114" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-114x114.png">'; |
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 Sensei comments output and replace with comments done the Genesis way. | |
* | |
* @notes Extends the WooThemes_Sensei_Frontend class. | |
* | |
*/ | |
if (class_exists('WooThemes_Sensei_Frontend')) { | |
remove_action( 'sensei_comments', array( $woothemes_sensei->frontend, 'sensei_output_comments' ), 10 ); | |
add_action( 'sensei_comments', array( 'WooThemes_Sensei_Frontend_Comments', 'pasada_sensei_output_comments' ), 10 ); |
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 | |
/** | |
* Add a new "Portfolio" profile tab and load content. | |
* | |
* @link http://premium.wpmudev.org/forums/topic/buddypress-adding-custom-page-tab | |
* | |
*/ | |
add_action( 'bp_setup_nav', 'pasada_profile_portfolio', 50 ); | |
function pasada_profile_portfolio() { |
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
/** | |
* Display Sensei Featured Courses. | |
* | |
* Displays a list of featured courses. | |
* | |
* @since 1.0.0 | |
* @return void | |
* @uses WP_Query() | |
* @link http://www.woothemes.com/sensei/ | |
* @author WooThemes |
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 and replace Google and iCal links on single event pages, with the link modified to open in new tab. | |
* | |
*/ | |
remove_action( 'tribe_events_single_event_after_the_content', array( 'TribeiCal', 'single_event_links' ) ); | |
add_action('tribe_events_single_event_after_the_content', 'tribe_add_cal_link'); | |
function tribe_add_cal_link() { |
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
/** | |
* Event featured image wrapped in a link to a larger version of the same image. | |
* | |
* Replaces tribe_event_featured_image to enable link to a larger version for display in a lightbox. | |
* Called in custom single event template file (/pasada/tribe-events/single-event.php). | |
* | |
*/ | |
function pasada_tribe_event_featured_image( $post_id = null, $size = 'full', $size2 = 'large', $link = true ) { | |
if ( is_null( $post_id ) ) { | |
$post_id = get_the_ID(); |
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 allowed tags notice on comment form. | |
* | |
*/ | |
function pasada_remove_comment_form_allowed_tags( $defaults ) { | |
$defaults['comment_notes_after'] = ''; | |
return $defaults; | |
} |
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
/** | |
* Customize Genesis footer credits. | |
* | |
*/ | |
function pasada_footer_creds_text() { | |
echo '<div class="creds"><p>© Copyright ' . date('Y') . ' <a href="http://www.globalmindbody.org/" title="Global Mind Body" target="_blank">Global Mind Body</a> · <a href="/contact/" title="Contact us">Contact</a> · <a href="/privacy/" title="Privacy policy">Privacy</a> · <a href="/terms/" title="Terms of use">Terms</a></p></div>'; | |
} | |
add_filter( 'genesis_footer_creds_text', 'pasada_footer_creds_text' ); |
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
/** | |
* Modify display of post entries on Genesis blog and archive pages. | |
* | |
*/ | |
function pasada_modify_entries() { | |
if ( is_home() || is_author() || is_category() || is_tag() || is_search() ) { | |
// Remove unwanted post elements. | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
NewerOlder