Created
October 4, 2018 07:20
-
-
Save yousufansa/3038b8b133edc9902089d4f4a63ab99a to your computer and use it in GitHub Desktop.
Jobhunt Job Search in Job List Page Header
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_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; | |
} | |
} |
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
.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