Created
February 1, 2019 06:45
-
-
Save yousufansa/3239ff1302f97b3529c25de613155d38 to your computer and use it in GitHub Desktop.
Jobhunt - Add Job Description On Job Listings
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_template_job_listing_desc' ) ) { | |
| function jh_child_template_job_listing_desc() { | |
| echo '<div class="job_listing-description">'; | |
| the_excerpt(); | |
| echo '</div>'; | |
| } | |
| } | |
| add_action( 'jobhunt_after_job_listing', 'jh_child_template_job_listing_desc', 105 ); |
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
| .job_listing .job_listing-description { | |
| margin-top: 5px; | |
| width: 100%; | |
| text-align: center; | |
| padding: 0 15px; | |
| } | |
| @media (min-width: 767.98px) { | |
| .job_listing .job_listing-description { | |
| margin-left: 195px; | |
| text-align: left; | |
| padding: 0; | |
| } | |
| } | |
| @media (min-width: 992px) { | |
| .job_listing .job_listing-description { | |
| margin-left: 105px; | |
| } | |
| } | |
| .job_listing .job_listing-description p { | |
| margin-bottom: 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment