Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created October 4, 2018 07:20
Show Gist options
  • Save yousufansa/3038b8b133edc9902089d4f4a63ab99a to your computer and use it in GitHub Desktop.
Save yousufansa/3038b8b133edc9902089d4f4a63ab99a to your computer and use it in GitHub Desktop.
Jobhunt Job Search in Job List Page Header
add_action('init', 'jobhunt_child_custom_functions' );
if ( ! function_exists( 'jobhunt_child_custom_functions' ) ) {
function jobhunt_child_custom_functions() {
add_filter( 'jobhunt_site_content_page_title', 'jobhunt_child_wpjm_page_title' );
}
}
if ( ! function_exists( 'jobhunt_child_wpjm_page_title' ) ) {
function jobhunt_child_wpjm_page_title( $title ) {
if( is_post_type_archive( 'job_listing' ) ) {
$style = jobhunt_get_wpjm_style();
if ( $style == 'list' ) {
jobhunt_job_header_search_block();
$title = '';
}
}
return $title;
}
}
.post-type-archive-job_listing.type-list .site-content-page-header-inner {
height: auto;
}
.post-type-archive-job_listing.type-list .site-content-page-header-inner .page-title-area {
width: 100%;
padding: 10px 20px 20px;
}
.post-type-archive-job_listing.type-list .site-content-page-header-inner .page-header-aside {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment