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 / 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 / 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 <[email protected]>
@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);
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;