Skip to content

Instantly share code, notes, and snippets.


Kurt Zenisek KZeni

Block or report user

Report or block KZeni

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wp-google-maps-marker-event-addlistener-behavior.js
// Customize the map's marker behavior on the homepage
function customizeHomepageMapMarkerBehavior(){
if($('body.home').length > 0 && typeof WPGMZA !== 'undefined'){
// Clear out previous googleMarker listener events
google.maps.event.clearListeners(this.googleMarker, 'mouseover');
google.maps.event.clearListeners(this.googleMarker, 'click');
// Create our own marker event listeners (note: `this.googleMarker` is for the Google Maps Marker itself while `this` is the WPGM marker [includes title & other info])
google.maps.event.addListener(this.googleMarker, 'mouseover', function(event) {
View SASS, JS, and other precompiling + preprocessing + minification

Tools to choose from

The official SASS site has a list of possible options here:

There are paid options, free options, and even open source options. These are then available on Windows, Mac, and/or Linux. They’re also inter-operable so it’s not a requirement that we use the same tool (though some consistency might be nice when it comes to sharing settings, discussing things, etc.)

I’ve personally used (paid & Mac only; my current app of choice), and (has paid options for helping further development & support, but it is provided 100% free per it being fully open source [Windows option is fully free even from the main download option]).

There’s then also (free & open source), (paid), (free & open source), and others.

What’s nice is that you can really use the tool of your choice and it should play nice (I know Kaitlyn uses a different tool from me) since it’s still just

View WPGM-polygon-line-interaction-styling-workaround.js
function disableWPGMPolygonLineOpacityOnInteraction(){
if(window.location.href.indexOf("communities") > -1 || window.location.href.indexOf("community") > -1){
if(this !== window){
google.maps.event.addListener(WPGM_Path_Polygon[i], "mouseover", function(event) {
this.setOptions({strokeOpacity: 0});
google.maps.event.addListener(WPGM_Path_Polygon[i], "click", function(event) {
this.setOptions({strokeOpacity: 0});
View fancybox-trigger.js
// Fancybox Lightbox
if($(this).attr('href').indexOf('somna') !== -1 || $(this).attr('href').indexOf('band') !== -1 || $(this).attr('href').indexOf('/channel/') !== -1 || $(this).attr('href').indexOf('/user/') !== -1){
// Don't affect links to channel/user pages
if($(this).attr('href').indexOf('somna') !== -1 || $(this).attr('href').indexOf('band') !== -1 || $(this).attr('href').indexOf('/channel/') !== -1 || $(this).attr('href').indexOf('/user/') !== -1){
View zillow-widget.php
if(isset($_GET['location']) && $_GET['location'] != ''){
$location = sanitize_text_field($_GET['location']);
$location = 'Wausau';
$output = '
<div id="zillow-large-search-box-widget-container" style="width:432px;overflow:hidden;background-color:#e7f1fd;color:#555; font: normal normal normal 13px verdana,arial,sans-serif;line-height:13px;margin:0 auto;padding:0;text-align:center;border:1px solid #adcfff;letter-spacing:0;text-transform:none;">
<h2 style="color:#d61;text-align:left;font-size:20px;line-height:20px;font-weight:normal;float:left;width:200px;margin-left:10px;margin-top:5px;letter-spacing:0;text-transform:none;">Find Homes</h2>
<div style="float:right;">
<a href="" target="_blank" rel="nofollow"><img alt="Zillow Real Estate Information" style="border:0;" src=""></img>
View job-aggregate-category-list.php
<div class="job-browse-block">
$count_posts = wp_count_posts( 'job_listing' )->publish;
$today = getdate();
//$query = new WP_Query( 'year=' . $today['year'] . '&monthnum=' . $today['mon'] . '&day=' . $today['mday'] );
$args = array(
'post_type' => 'job_listing',
'date_query' => array(
View jobs-customize.php
$shortcode = '[jobs ';
if(isset($_GET['job_listing_category']) && $_GET['job_listing_category'] != ''){
echo '<p><a href="'. get_permalink(get_option('job_manager_jobs_page_id')).'" class="button btn">&larr; Back to All Job Listings</a></p>';
echo '<h3>'.ucwords(str_replace('-',' ',sanitize_text_field($_GET['job_listing_category']))).'</h3>';
$shortcode.= 'categories="'.sanitize_text_field($_GET['job_listing_category']).'" ';
$shortcode.= ']';
echo do_shortcode($shortcode);
echo "
View bad-shortcode-example.php
//About Us Team Shortcode
function aboutus_team_member() {
global $post;
if(get_post_type($post) === 'page'){
$aboutus_team_args = array(
'post_type' => 'our-team',
'posts_per_page' => -1
KZeni / index.php
Last active May 17, 2019
Simple Tooltip Patch to add Vertical Alignment setting
View index.php
Plugin Name: Simple Tooltips
Description: Easily add tooltips to your wordpress site. You can define tooltip color settings in <strong>Settings > Simple Tooltips</strong>
Version: 2.1.3
Author: Justin Saad
Author URI:
License: GPL2
View reports.php
Plugin - WP ADA Compliance Check
functions to support dipslay or reports and reference pages
function wp_ada_compliance_basic_refresh_report_page(){
You can’t perform that action at this time.