This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Do NOT include the opening php tag */ | |
/** Genesis Featured Page Extras: Remove Widgets Shortcode Support */ | |
add_filter( 'gfpe_filter_widget_shortcodes', '__return_false' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'genesis_single_crumb', 'gj_single_crumb', 10, 2 ); | |
/** | |
* Remove Post Title from Breadcrumb. | |
* | |
* Takes a substring of crumb, starting at 0, with a length of up to the last occurrence of the | |
* (start of the) separator string. | |
*/ | |
function gj_single_crumb( $crumb, $args ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function response_time() { | |
echo "<script> | |
window.addEventListener( | |
'load', | |
function() { | |
setTimeout( | |
function() { | |
if ( window.performance && window.performance.timing && window.console ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add custom translations via plugin "Load Custom Translations" by DECKERWEB | |
*/ | |
if ( defined( 'LCTRL_PLUGIN_BASEDIR' ) ) : | |
lct_load_custom_translations( | |
array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Custom Jetpack German (de_DE) | |
* @author David Decker | |
* @copyright Copyright (c) 2013, David Decker - DECKERWEB | |
* @license GPL-2.0+ | |
* @link http://deckerweb.de/twitter | |
* | |
* @wordpress-plugin | |
* Plugin Name: Custom Jetpack German (de_DE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Do NOT include the opening php tag */ | |
/** | |
* Remove gettext filters of WCDE. | |
* | |
* @author David Decker - DECKERWEB | |
* @link http://deckerweb.de/twitter | |
*/ | |
remove_filter( 'gettext', 'ddw_wcde_gettext_read_accept_string', 10, 4 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Site Home Links | |
* Plugin URI: | |
* Description: | |
* Version: | |
* Author: Kailey Lampert | |
* Author URI: kaileylampert.com | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Do NOT include the opening php tag */ | |
/** | |
* Remove gettext filters of WCDE, for non-German locales when using WPML. | |
* | |
* @author David Decker - DECKERWEB | |
* @link http://deckerweb.de/twitter | |
*/ | |
if ( defined( 'ICL_LANGUAGE_CODE' ) && ! ( ICL_LANGUAGE_CODE == 'de' ) ) { |