Last active
March 20, 2019 05:30
-
-
Save yousufansa/90dd53e631f2123a5714c125450e9a41 to your computer and use it in GitHub Desktop.
Jobhunt - Job Single V1 Mobile Style 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_single_job_listing_related_jobs_rearrange_mobile' ) ) { | |
| function jh_child_single_job_listing_related_jobs_rearrange_mobile() { | |
| if( function_exists( 'jobhunt_get_wpjm_single_style' ) && ( jobhunt_get_wpjm_single_style() == 'v1' ) ) { | |
| add_action( 'single_job_listing_sidebar', 'jobhunt_single_job_listing_related_jobs', 40 ); | |
| } | |
| } | |
| } | |
| add_action( 'init', 'jh_child_single_job_listing_related_jobs_rearrange_mobile' ); |
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
| @media (min-width: 992px) { | |
| .job-single-type-v1 .single-job-listing__sidebar-area .related-jobs { | |
| display: none; | |
| } | |
| } | |
| @media (max-width: 991.98px) { | |
| .job-single-type-v1 .single-job-listing__content-area .related-jobs { | |
| display: none; | |
| } | |
| .job-single-type-v1 .single-job-listing__sidebar-area { | |
| display: flex; | |
| flex-direction: column; | |
| max-width: 100%; | |
| } | |
| .job-single-type-v1 .single-job-listing__sidebar-area .single-job-listing__overview { | |
| order: -1; | |
| } | |
| } | |
| @media (max-width: 991.98px) and (min-width: 768px) { | |
| .job-single-type-v1 .single-job-listing__sidebar-area { | |
| flex-direction: row; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment