Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Last active March 20, 2019 05:30
Show Gist options
  • Select an option

  • Save yousufansa/90dd53e631f2123a5714c125450e9a41 to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/90dd53e631f2123a5714c125450e9a41 to your computer and use it in GitHub Desktop.
Jobhunt - Job Single V1 Mobile Style Change
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' );
@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