Skip to content

Instantly share code, notes, and snippets.

View yousufansa's full-sized avatar

Yusuf Ansari yousufansa

View GitHub Profile
@yousufansa
yousufansa / functions.php
Created October 5, 2018 09:09
Jobhunt Resume Custom Fields
add_action( 'init', 'jobhunt_child_custom_function' );
if ( ! function_exists( 'jobhunt_child_custom_function' ) ) {
function jobhunt_child_custom_function() {
remove_filter( 'submit_resume_form_fields', 'jobhunt_add_custom_submit_resume_form_fields' );
add_filter('resume_manager_resume_fields', 'jobhunt_child_add_custom_resume_fields' );
add_filter('submit_resume_form_fields' , 'jobhunt_child_custom_submit_resume_form_fields');
add_filter( 'jobhunt_single_candidate_overview_details', 'jobhunt_child_single_candidate_overview_details' );
}
}
@yousufansa
yousufansa / functions.php
Created October 8, 2018 08:26
Jobhunt - Display Resume Custom Field Example
add_filter( 'jobhunt_single_candidate_overview_details', 'jobhunt_child_single_candidate_overview_details' );
if( ! function_exists( 'jobhunt_child_single_candidate_overview_details' ) ) {
function jobhunt_child_single_candidate_overview_details( $args ) {
$args['candidate_phone'] = array(
'icon' => 'la la-phone',
'label' => esc_html__( 'Phone', 'jobhunt' ),
'callback' => 'jobhunt_child_single_candidate_overview_candidate_phone',
);
@yousufansa
yousufansa / functions.php
Created October 8, 2018 09:34
Jobhunt - Remove Resume Submit Form Fields
add_action( 'init', 'jobhunt_child_custom_function' );
if ( ! function_exists( 'jobhunt_child_custom_function' ) ) {
function jobhunt_child_custom_function() {
add_filter('submit_resume_form_fields' , 'jobhunt_child_custom_submit_resume_form_fields');
}
}
if ( ! function_exists( 'jobhunt_child_custom_submit_resume_form_fields' ) ) {
function jobhunt_child_custom_submit_resume_form_fields ($fields) {
@yousufansa
yousufansa / style.css
Created October 9, 2018 09:30
Jobhunt Job Type Color Fix
.job-type.part-time {
color: #007bff;
border-color: #007bff;
}
.job-type.part-time:hover {
color: #fff;
background-color: #007bff;
border-color: #007bff;
}
.job-type.part-time:focus, .job-type.part-time.focus {
@yousufansa
yousufansa / functions.php
Created October 9, 2018 11:31
Jobhunt - Remove Job Submit Form Fields
add_action( 'init', 'jobhunt_child_custom_function' );
if ( ! function_exists( 'jobhunt_child_custom_function' ) ) {
function jobhunt_child_custom_function() {
add_filter('submit_job_form_fields' , 'jobhunt_child_custom_submit_job_form_fields');
}
}
if ( ! function_exists( 'jobhunt_child_custom_submit_job_form_fields' ) ) {
function jobhunt_child_custom_submit_job_form_fields ($fields) {
@yousufansa
yousufansa / functions.php
Created October 11, 2018 08:49
Jobhunt - Enable Header Job Search
if ( ! function_exists( 'jobhunt_header_job_search_icon' ) ) {
/**
* Displays Header Job Search Icon
*/
function jobhunt_header_job_search_icon() {
if ( jobhunt_is_wp_job_manager_activated() && function_exists( 'jobhunt_job_header_search_block' ) ) {
echo '<li class=header-search-icon>';
echo '<span class="search-btn"><i class="la la-search desktop-only"></i><i class="fas fa-search handheld-only"></i></span>';
$args = apply_filters( 'jobhunt_header_job_search_icon_args', array(
@yousufansa
yousufansa / functions.php
Created October 11, 2018 15:47
Jobhunt - Header User Dropdown Menu
add_filter( 'jobhunt_enable_header_user_login_dropdown', '__return_true' );
@yousufansa
yousufansa / functions.php
Created October 11, 2018 15:54
Jobhunt - Enable Company Carousel Row Feature
if ( ! function_exists( 'jobhunt_child_kc_map_shortcode_params_company_info_carousel' ) ) {
function jobhunt_child_kc_map_shortcode_params_company_info_carousel( $shortcode_params ) {
$shortcode_params['jobhunt_company_info_carousel']['params'][] = array(
'name' => 'ca_rows',
'label' => esc_html__('Rows', 'jobhunt-extensions'),
'type' => 'text',
'description' => esc_html__('Enter the number of rows to display.', 'jobhunt-extensions'),
'value' => 1,
'admin_label' => true
);
@yousufansa
yousufansa / functions.php
Created October 15, 2018 06:18
Tokoo - Remove Header Cart Icon
add_action( 'init', 'tokoo_child_init_custom_functions' );
if( !function_exists('tokoo_child_init_custom_functions') ) {
function tokoo_child_init_custom_functions() {
remove_action( 'tokoo_header_icons', 'tokoo_header_cart' );
}
}
@yousufansa
yousufansa / style.css
Created October 19, 2018 07:20
Jobhunt - Primary Button Style For Header Menu Item
.site-header .desktop-only .primary-menu-item a {
border-radius: 4px;
padding-left: 18px;
padding-right: 18px;
}
.header-bg-default .stuck .header-menu .primary-menu-item a {
color: #fff;
}