Last active
August 29, 2015 14:01
-
-
Save johnbuck/4c952df0e928cc116110 to your computer and use it in GitHub Desktop.
Remove "Archive" from Testimonials Post Archive page using Canvas
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
/* Change Archive Template H1 */ | |
add_filter( 'woo_archive_title', 'change_testimonial_archive_title' ); | |
function change_testimonial_archive_title( $title ) { | |
if ( is_post_type_archive( 'testimonial' )) { | |
$title = '<h1 class="archive_header">'. __( 'Testimonials', 'woothemes' ) .'</h1>'; // now display the category only | |
} | |
return $title; | |
} // End filter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment