Skip to content

Instantly share code, notes, and snippets.

@rali14
rali14 / functions.php
Created June 9, 2015 02:18
force autolocation on homepage only
function listify_custom_autolocation() {
if ( ! ( is_front_page() ) ) {
return;
}
?>
<script>
jQuery(document).ready(function() {
var locate = jQuery( '.locate-me' );
locate.trigger( 'click' );
});
@rali14
rali14 / content-single-resume.php
Created June 10, 2015 07:11
Fix missing argument.
<?php
/**
*
*/
global $post;
$skills = wp_get_object_terms( $post->ID, 'resume_skill', array( 'fields' => 'names' ) );
$education = get_post_meta( $post->ID, '_candidate_education', true );
$experience = get_post_meta( $post->ID, '_candidate_experience', true );
@rali14
rali14 / class-widget-job-company-social.php
Created June 16, 2015 07:16
Jobify - Open all Company Social Links in New tab
<?php
/**
* Job: Company Social
*
* @since Jobify 1.6.0
*/
class Jobify_Widget_Job_Company_Social extends Jobify_Widget {
/**
* Constructor
*/
@rali14
rali14 / style.css
Created June 18, 2015 13:20
Increase width of mega menu in Listify
@media (min-width: 992px) {
.mega-category-list-wrapper {
max-width: 99% !important;
}
}
@rali14
rali14 / style.css
Last active November 21, 2016 23:07
Change color of star ratings to gold
/* Set the color for star ratings throughout the site (except listing header) */
.stars-rating .dashicons, .review-form-stars [class*="dashicon"] {
color: red !important;
}
/* Set the color for star ratings on the listings page header */
.content-single-job_listing-hero.has-image .stars-rating .dashicons:before {
color: red !important;
}
@rali14
rali14 / style.css
Last active March 8, 2017 13:20
Change color of Primary menu sub items in Listify
/* Change the word the color red to the color of your choice */
ul.sub-menu > li > a {
color: red !important;
}
@rali14
rali14 / style.css
Created July 27, 2015 04:55
Featured widget image 100%
.home-feature-media img {
width: 100%;
}
@rali14
rali14 / footer.php
Created July 29, 2015 00:28
Hide CTA on a specific page.
@rali14
rali14 / style.css
Last active September 6, 2016 21:43
Change homepage cover image title and description color on Listify
.homepage-cover .home-widget-description, .homepage-cover .home-widget-title {
color: white !important;
}
@rali14
rali14 / style.css
Created August 2, 2015 06:56
Display 3 columns on Archive page (Listify)
.archive ul.job_listings .job_listing {
width: 33% !important;
}