Skip to content

Instantly share code, notes, and snippets.

View jonahcoyote's full-sized avatar

Jonah C West jonahcoyote

View GitHub Profile
@jonahcoyote
jonahcoyote / divi-slider-auto-height.css
Created January 23, 2019 17:34
Divi Slider Module Auto Height
/* === Begin: Set the divi slider to auto height === */
/* Desktop */
.auto-height-slider .et_pb_slide .et_pb_container {
height: auto !important;
min-height: auto !important;
}
/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 980px) {
.auto-height-slider .et_pb_slide .et_pb_container {
@jonahcoyote
jonahcoyote / gw-gravity-forms-advanced-conditional-logic.php
Last active February 21, 2019 13:14 — forked from spivurno/gw-gravity-forms-advanced-conditional-logic.php
Gravity Wiz // Gravity Forms // Advanced Conditional Logic
<?php
/**
* Gravity Wiz // Gravity Forms // Advanced Conditional Logic
*
* PLEASE NOTE: This snippet is a proof-of-concept. It is not supported and we have no plans to improve it.
*
* Allows multiple groups of conditional logic per field.
*
* @version 0.1
* @author David Smith <david@gravitywiz.com>
@jonahcoyote
jonahcoyote / export.sql
Last active January 8, 2019 00:05
Sabai Directory Export SQL
/*
Intro:
Here are some export examples you can use to export Sabai directory data. I'm no MySQL expert and there's probably better ways to run these queries but this worked for my purposes. I hope this helps!
Note, this is going to export all columns and you'll need to manually go in and remove columns you don't need in Excel or Numbers or whatever spreadsheet program you have.
Usage:
This is meant to be run in phpMyAdmin. Look at your own table structure and modify as necessary for any custom fields, table prefix, and custom bundle. Custom fields are storedin their own tables and cross linked via entity_id which is the id of a listing.
*/
@jonahcoyote
jonahcoyote / pgs.php
Last active October 17, 2018 18:41
Modification of Advanced Woocommerce Product Gallery Slider For Using Custom Image Sizes
<?php
/**
* Single Product Image
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/product-image.php.
*
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
@jonahcoyote
jonahcoyote / unenqueue-default-tribe-photojs-and-isotope.php
Last active April 9, 2018 17:07 — forked from barryhughes/temp-fix-ecp-embedded-photo-view-avada.php
Remove Default Tribe Photo View JS & Isotope in Shortcode #tribe #ecp
<?php
/**
* Unenqueue Tribe Scripts and replace with custom ones
*
* Tested with Events Calendar PRO 4.4.22
*/
// Unload isotope and photo view js for shortcode
add_action( 'tribe_events_pro_tribe_events_shortcode_prepare_photo', function() {
// Dequeue ECP's copy of isotope
@jonahcoyote
jonahcoyote / tribe-event-list-target-today.php
Created December 5, 2017 23:59 — forked from jesseeproductions/tribe-event-list-target-today.php
The Events Calendar - Target a Specific Event List Widget to Only Show Todays Events
/**
* The Events Calendar - Target a Specific Event List Widget to Only Show Todays Events
*
* modify tribe-events-adv-list-widget-2 to id of widget
*/
function tribe_modify_list_widget_args_for_today( $args ) {
$start_date_init = date ( 'Y-m-d' );
$start_date_end = $start_date_init . ' 23:59:59';
@jonahcoyote
jonahcoyote / .gitignore
Created March 21, 2017 20:33
Common gitignore
/.gitignore
# codekit #
###########
.sass-cache/
.codekit-config.json
.config.codekit
files/wp-content/themes/esco/assets/scss/.sass-cache/*
files/wp-content/themes/esco/config.codekit
/wp-content/themes/esco/config.codekit
<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
@jonahcoyote
jonahcoyote / mp_custom_account_nav.php
Created April 9, 2016 01:39 — forked from supercleanse/mp_custom_account_nav.php
Add custom tabs to the MemberPress Account Page
<?php
add_action('mepr_account_nav', 'custom_account_nav', 10, 1);
function custom_account_nav($user) {
$mepr_options = MeprOptions::fetch();
$whaa_url = $mepr_options->account_page_url('action=whaa');
?>
<span class="mepr-nav-item custom-whaa">
<a href="<?php echo $whaa_url; ?>" id="mepr-account-whaa"><?php _e('Whaa', 'memberpress'); ?></a>
</span>
// Customize Events Community Datepicker
if($("div.tribe-community-events-date input.datepicker").length) {
var datepickerOpts = {
dateFormat: 'yy-mm-dd',
changeMonth: true,
changeYear: true,
onSelect: function(selectedDate) {
var option = this.id == "EventStartDate" ? "minDate" : "maxDate";
var instance = $(this).data("datepicker");
var date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);