Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created December 17, 2018 15:53
Show Gist options
  • Save yousufansa/60b556441b3a5cce9f8c26c7256fffcb to your computer and use it in GitHub Desktop.
Save yousufansa/60b556441b3a5cce9f8c26c7256fffcb to your computer and use it in GitHub Desktop.
Jobhunt - Job Archive Page Header Title Change
if ( ! function_exists( 'jh_child_custom_wpjm_page_title' ) ) {
function jh_child_custom_wpjm_page_title( $title ) {
if( is_post_type_archive( 'job_listing' ) || is_page( jh_wpjm_get_page_id( 'jobs' ) ) ) {
$style = jobhunt_get_wpjm_style();
if ( $style == 'list' ) {
$title = esc_html__( 'Your Title', 'jobhunt' );
}
}
return $title;
}
}
add_filter( 'jobhunt_site_content_page_title', 'jh_child_custom_wpjm_page_title', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment