Skip to content

Instantly share code, notes, and snippets.

View imfaisalkh's full-sized avatar
🎯
Focusing

Faisal Khurshid imfaisalkh

🎯
Focusing
  • Pakistan
View GitHub Profile
@imfaisalkh
imfaisalkh / remove-career-level-field.php
Created July 23, 2019 13:54
Capstone - Remove "Career Level" Field & Output
#-----------------------------------------------------------------#
# Remove "Career Level" Field
#-----------------------------------------------------------------#
function remove_default_career_level_field() {
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_career_level_field', 10 );
remove_filters_with_method_name( 'job_manager_job_listing_data_fields', 'admin_job_career_level_field', 10 );
}
add_action( 'init', 'remove_default_career_level_field' );
#-----------------------------------------------------------------#
@imfaisalkh
imfaisalkh / inline-search-mobile.css
Last active August 25, 2019 23:39
Capstone - Display Inline Search Form on Mobile
@media (max-width: 640px) and (min-width: 0) {
.page-hero { height: 750px !important; }
.page-hero .inner .search-form { opacity: 1; display: block; }
.page-hero .inner .search-form .inner { width: 100%; }
}
@imfaisalkh
imfaisalkh / job-id-meta.php
Created July 25, 2019 22:47
Capstone - Append Job ID Meta Value
<?php
#-----------------------------------------------------------------#
# Append Job ID Meta Value
#-----------------------------------------------------------------#
function job_id_meta() {
echo '<li class="meta-field job-id-meta">';
echo '<img class="icon svg-icon" src="'. esc_url( get_template_directory_uri() .'/images/salary-icon.svg') .'" alt="'. esc_html__('Job ID', 'capstone') .'">';
echo '<label class="title">'. esc_html__('Job ID', 'capstone') .':</label>';
@imfaisalkh
imfaisalkh / modify-register-link.php
Created July 27, 2019 19:35
Capstone - Modify registration link
@imfaisalkh
imfaisalkh / job-share-link.php
Created July 30, 2019 00:10
Capstone - Add Job Share Link
@imfaisalkh
imfaisalkh / job-desc-template.php
Last active August 31, 2019 01:59
Job Description Field Template
<?php
#-------------------------------------------------------------------------------#
# WP Job Manager - Description Field Template
#-------------------------------------------------------------------------------#
add_filter( 'capstone_job_desc_template', 'capstone_job_desc_field_template' );
function capstone_job_desc_field_template() {
$output = '<h3>Description</h3>';
@imfaisalkh
imfaisalkh / resume-desc-template.php
Created August 31, 2019 01:59
Resume Description Field Template
<?php
#-------------------------------------------------------------------------------#
# WP Resume Manager - Description Field Template
#-------------------------------------------------------------------------------#
add_filter( 'capstone_resume_desc_template', 'capstone_resume_desc_field_template' );
function capstone_resume_desc_field_template() {
$output = '<p>Introduce yourself. What are your goals, what are your objectives?</p>';
@imfaisalkh
imfaisalkh / facetwp-flyout-button.php
Created September 13, 2019 21:44
FacetWP Flyout Menu
<?php
add_action('capstone_page_content_start', function () {
if (is_post_type_archive('job_listing') || is_post_type_archive('resume')) {
echo '<button class="facetwp-flyout-open">Filter</button>';
}
});
@imfaisalkh
imfaisalkh / modern-form.css
Last active October 8, 2019 19:55
Apply modern form styling to regular forms
/*---------------------------------------------------------
Styled Form (replacer "#wppb-register-user-client" with your form ID)
-------------------------------------------------------- */
form#wppb-register-user-client input:not([type="submit"]),
form#wppb-register-user-client select,
form#wppb-register-user-client textarea {
height: 72px;
padding: 3.2rem 2rem 1rem 2rem !important;
}
@imfaisalkh
imfaisalkh / remove-experience-field.php
Created October 8, 2019 20:23
Capstone - Remove "Experience" Field & Output
#-----------------------------------------------------------------#
# Remove "Experience" Field
#-----------------------------------------------------------------#
function remove_default_experience_field() {
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_experience_field', 10 );
remove_filters_with_method_name( 'job_manager_job_listing_data_fields', 'admin_job_experience_field', 10 );
}
add_action( 'init', 'remove_default_experience_field' );
#-----------------------------------------------------------------#