Skip to content

Instantly share code, notes, and snippets.

View WayneStratton's full-sized avatar

Wayne WayneStratton

View GitHub Profile
@WayneStratton
WayneStratton / *Best Snippets*
Created May 6, 2020 19:24 — forked from zackpyle/*Best Snippets*
Best PHP/JS Snippets
This is a collection of my most used or most useful PHP and JS snippets
**Disclaimer, I didn't write most of these - I just curated them over the years**
@WayneStratton
WayneStratton / twittermute.txt
Created January 24, 2020 20:07 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@WayneStratton
WayneStratton / bb-clickble-col.js
Created September 24, 2019 05:43 — forked from carlosonweb/bb-clickble-col.js
Make a BB Column Clickable
/**
* Makes a BB Column clickable.
* Pre-requisite: There must be an A Tag contained within the column element.
*/
jQuery(document).ready(function($){
$('.clickable-col').css('cursor', 'pointer');
$('.clickable-col').on('click', function(event){
$(this).find('a')[0].click();
});
@WayneStratton
WayneStratton / functions.php
Created May 29, 2019 19:50
Add [year] shortcode to Beaver Themer footers.
function year_shortcode() {
$year = date('Y');
return $year;
}
add_shortcode('year', 'year_shortcode');
@WayneStratton
WayneStratton / mobileFirstColoring.css
Created May 5, 2019 17:20 — forked from NSHouseCat/mobileFirstColoring.css
IDX Broker - Customize Colors on Mobile First Search Template
/*Add this CSS to the Designs > Custom CSS section of your IDX Broker contorl panel.*/
/*Just swap out the below hex values for whatever colors you prefer*/
/*Background color for the navigation bar*/
.IDX-navbar-header {
background-color: #000000;
}
#IDX-navbar-collapse {
background-color: #000000;
}
@WayneStratton
WayneStratton / IDX-Collapse-Mobile-Detail-Sections.html
Created May 5, 2019 17:19 — forked from NSHouseCat/IDX-Collapse-Mobile-Detail-Sections.html
IDX Broker - Collapse Detail Sections in Mobile First Template
<script>
idx(document).ready(function() {
idx(".IDX-panel-collapse").each(function() {
this.classList.remove("IDX-in");
});
});
</script>
@WayneStratton
WayneStratton / IDX-Responsive-Platinum-Grid.css
Created May 5, 2019 17:18 — forked from NSHouseCat/IDX-Responsive-Platinum-Grid.css
IDX Broker - Make Legacy Platinum Grid Results Template Responsive
@media only screen and (max-width: 500px) {
.IDX-resultCellContainer {
display: flex;
flex-direction: column;
}
.IDX-resultsCell {
width: 100%;
}
.IDX-resultsPhoto {
display: flex;
@WayneStratton
WayneStratton / communities.php
Created January 25, 2019 18:31
Communities CPT (For migrating away from Agentpress + Genesis)
<?php
/*
Plugin Name: Communities Custom Post Type
Description: Custom Post Type for Wayne Stratton's custom website projects.
Author: Wayne Stratton
Author URI: http://www.waynestratton.org
*/
add_action( 'init', 'triangle_community_cpt' );
@WayneStratton
WayneStratton / functions.php
Created January 25, 2019 05:15
Add default image to listing in Listify if one is not chosen by user
/**
* Listify - Default Image for Listings
*/
function custom_default_listify_cover_image( $image, $args ) {
global $post;
if ( $image || $post->post_type != 'job_listing' ) {
return $image;
}
@WayneStratton
WayneStratton / functions.php
Created September 19, 2018 18:23
Listify Tweaks
<?php
/**
* Listify child theme.
*/
function listify_child_styles() {
wp_enqueue_style( 'listify-child', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'listify_child_styles', 999 );
/** Place any new code below this line */