Skip to content

Instantly share code, notes, and snippets.

@rali14
rali14 / functions.php
Last active May 4, 2022 14:07
Display the username instead of first name on Account menu item
function custom_menu_item_name () {
$current_user = wp_get_current_user();
return $current_user->user_login;
}
add_filter( 'listify_acount_menu_user_label', custom_menu_item_name, 99 );
@rali14
rali14 / archive-job_listings.php
Last active January 11, 2017 05:33
Display term descriptions on the listing archive pages. (Listify)
<?php
/**
* Customized version of the template for displaying Job Listings which includes the term descriptions
*
* Also used for all job listing taxonomy archives.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package Listify
*/
@rali14
rali14 / style.css
Created April 30, 2016 04:48
Display only the region field on Listify
.search_jobs div.search_keywords {
display: none;
}
.search_jobs div.search_region {
width: 75%;
}
@rali14
rali14 / style.css
Created April 28, 2016 20:06
Swap the Location and Category Fields on Homepage Search
.search_jobs > div.search_location {
float: right;
}
.search_jobs > div.search_categories {
float:left;
}
@rali14
rali14 / style.css
Created April 28, 2016 16:23
Display only Location Field And Category Field
/* Remove Keyword Search Field */
.search_jobs > div.search_keywords {
display: none;
}
/* Increase width of Location field & Category Field to roughly 50%, only on desktop*/
@media only screen and (min-width: 768px) {
@rali14
rali14 / style.css
Created April 16, 2016 00:22
Remove Stars from Listify Theme
.job_listing-rating-wrapper,
.map-marker-info .rating,
.single-comment-rating,
.star-rating-wrapper {
display: none !important;
}
@rali14
rali14 / functions.php
Created April 11, 2016 18:43
Set default cover image for all listings
function custom_default_listify_cover_image( $image, $args ) {
global $post;
if ( $post->post_type == 'job_listing' ) {
return ""; //You can add URL to a default image here or leave it blank if you do not want a background for listings
}
}
add_filter( 'listify_cover_image', 'custom_default_listify_cover_image', 10, 2 );
@rali14
rali14 / style.css
Created April 7, 2016 17:01
Remove featured listings colored box on Listify
/* More details on the property can be found on the below site:
http://www.w3schools.com/cssref/css3_pr_box-shadow.asp
*/
.job_position_featured .content-box {
box-shadow: none !important;
}
@rali14
rali14 / style.css
Last active April 7, 2016 17:00
Change color of featured listings box on Listify
/* You can change the color to whatever you like by replacing red in the code below
You can also change the width of the box. More details on the property can be found on the below site:
http://www.w3schools.com/cssref/css3_pr_box-shadow.asp
*/
.job_position_featured .content-box {
box-shadow: 0 0 0 3px red;
@rali14
rali14 / functions.php
Created April 4, 2016 21:55
Enable multiple reviews on Listify
add_filter( 'wpjmr_can_post_multiple_reviews', '__return_true' );