Skip to content

Instantly share code, notes, and snippets.

View langlers's full-sized avatar

Daniel Bond | Langlers WebWorks langlers

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1ACEAjp3RCbka6TQZFRdxHksrVRcx83WFT https://explorer.blockstack.org/address/1ACEAjp3RCbka6TQZFRdxHksrVRcx83WFT
@langlers
langlers / debug-givewp.php
Created August 20, 2017 20:19 — forked from petertwise/debug-givewp.php
Give givewp.com Donation Plugin - list of all actions and filters for testing.
<?php
/*
Plugin Name: Debug Give Wp
Plugin URI: https://gist.github.com/squarecandy/8ed8265bde0c39e42ab8a19c062bf534
Description: Help discover where all of Give's action can plop in some content, and what all the filters do
Version: 1.0
Author: Square Candy
Author URI: http://squarecandy.net
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.txt
@langlers
langlers / epanel-integration-body.html
Created April 2, 2017 23:43 — forked from lots0logs/epanel-integration-body.html
WordPress :: Divi Builder :: Pause Background Video Until It Is In The Viewport
<script>
(function($) {
$(window).load(function() {
var $fw_section = $('.custom_class');
$fw_section.waypoint({
handler: function(direction) {
$(this.element).find('video')[0].player.play();
},
offset: '50%'
@langlers
langlers / child-theme-functions-php-snippet.php
Created April 2, 2017 13:53 — forked from lots0logs/child-theme-functions-php-snippet.php
WordPress :: Divi Builder :: Fullwidth Portfolio Module :: Custom Thumbnail Size
<?php
/* DON'T copy the first line (above) if your functions.php already has it.
* ---------------------------------------------------------------------- */
function my_et_theme_image_sizes( $sizes ) {
$sizes['200x200'] = 'my-et-pb-portfolio-image';
return $sizes;
}
add_filter( 'et_theme_image_sizes', 'my_et_theme_image_sizes' );
@langlers
langlers / child-theme-functions-php-snippet.php
Created April 2, 2017 13:53 — forked from lots0logs/child-theme-functions-php-snippet.php
WordPress :: Divi Builder :: Filterable Portfolio :: Change Post Order
<?php
/* DON'T copy the first line (above) if your functions.php already has it.
* ---------------------------------------------------------------------- */
function my_et_theme_setup() {
if ( class_exists( 'ET_Builder_Module_Filterable_Portfolio' ) && file_exists( 'my-main-modules.php' ) ) {
get_template_part( 'my-main-modules' );
$et_pb_filterable_portfolio = new My_ET_Builder_Module_Filterable_Portfolio();
remove_shortcode('et_pb_filterable_portfolio');
add_shortcode('et_pb_filterable_portfolio', array( $et_pb_filterable_portfolio, '_shortcode_callback' ) );
@langlers
langlers / functions.php
Created April 2, 2017 13:49 — forked from lots0logs/functions.php
Divi Contact Form Module Customization
<?php
function my_et_theme_setup() {
if ( class_exists( 'ET_Builder_Module_Contact_Form' ) ) {
get_template_part( 'my-main-modules' );
$et_pb_contact = new My_ET_Builder_Module_Contact_Form();
remove_shortcode('et_pb_contact_form');
add_shortcode('et_pb_contact_form', array( $et_pb_contact, '_shortcode_callback' ) );
}
}
@langlers
langlers / functions.php
Created April 2, 2017 13:44 — forked from MaruscaGabriel/functions.php
WordPress (DIVI) code snippets
<?php
// Limit the number of revisions to 3
add_filter( 'wp_revisions_to_keep', 'divi_limit_revisions', 10, 2 );
function divi_limit_revisions( $num ) {
$num = 3;
return $num;
}
//Disable Emoji
@langlers
langlers / 0_reuse_code.js
Created April 2, 2017 13:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console