Created
December 17, 2018 16:01
-
-
Save yousufansa/40a086fc3996c1d32cb6d3fdefed4c81 to your computer and use it in GitHub Desktop.
Jobhunt - Job Archive Page Header Subtitle Change
This file contains hidden or 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
| if ( ! function_exists( 'jh_child_custom_wpjm_page_subtitle' ) ) { | |
| function jh_child_custom_wpjm_page_subtitle( $subtitle ) { | |
| if( is_post_type_archive( 'job_listing' ) || is_page( jh_wpjm_get_page_id( 'jobs' ) ) ) { | |
| $style = jobhunt_get_wpjm_style(); | |
| if ( $style == 'list' ) { | |
| $subtitle = esc_html__( 'Your Subtitle', 'jobhunt' ); | |
| } | |
| } | |
| return $subtitle; | |
| } | |
| } | |
| add_filter( 'jobhunt_site_content_page_subtitle', 'jh_child_custom_wpjm_page_subtitle', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment