Skip to content

Instantly share code, notes, and snippets.

Jonah C West jonahcoyote

Block or report user

Report or block jonahcoyote

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
@jonahcoyote
jonahcoyote / divi-slider-auto-height.css
Created Jan 23, 2019
Divi Slider Module Auto Height
View divi-slider-auto-height.css
/* === 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 / pgs.php
Last active Oct 17, 2018
Modification of Advanced Woocommerce Product Gallery Slider For Using Custom Image Sizes
View pgs.php
<?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 / gw-gravity-forms-advanced-conditional-logic.php
Last active Feb 21, 2019 — forked from spivurno/gw-gravity-forms-advanced-conditional-logic.php
Gravity Wiz // Gravity Forms // Advanced Conditional Logic
View gw-gravity-forms-advanced-conditional-logic.php
<?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 / unenqueue-default-tribe-photojs-and-isotope.php
Last active Apr 9, 2018 — forked from barryhughes/temp-fix-ecp-embedded-photo-view-avada.php
Remove Default Tribe Photo View JS & Isotope in Shortcode #tribe #ecp
View unenqueue-default-tribe-photojs-and-isotope.php
<?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 Dec 5, 2017 — forked from jesseeproductions/tribe-event-list-target-today.php
The Events Calendar - Target a Specific Event List Widget to Only Show Todays Events
View tribe-event-list-target-today.php
/**
* 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';
View .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
View content
<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
@jonahcoyote
jonahcoyote / mp_custom_account_nav.php
Created Apr 9, 2016 — forked from supercleanse/mp_custom_account_nav.php
Add custom tabs to the MemberPress Account Page
View mp_custom_account_nav.php
<?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>
View community-datepicker.js
// 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);
View functions.php
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
You can’t perform that action at this time.