Skip to content

Instantly share code, notes, and snippets.

View deckerweb's full-sized avatar
🏠
Working from home

David Decker deckerweb

🏠
Working from home
View GitHub Profile
@deckerweb
deckerweb / plugin.php
Created September 22, 2016 14:17 — forked from logoscreative/plugin.php
Friendlier, Safer WordPress Admin Areas
<?php
/**
* "Friendlier, Safer WordPress Admin Areas"
* Presented by Cliff Seal at WordCamp Atlanta 2015 and Asheville 2016
* Slides: http://www.slideshare.net/cliffseal/wp-admin
*
* Plugin Name: A Better Admin Experience
* Plugin URI: http://evermoresites.com
* Description: Cleans up and sanitizes the WordPress admin area
* Version: 1.0
@deckerweb
deckerweb / change-shortcode-logo.php
Last active August 22, 2016 13:06
Plugin: Genesis Shortcode UI - Change a certain Shortcode logo in the UI // Plugin page: http://deckerweb.github.io/genesis-shortcode-ui
<?php
/** Do NOT include the opening php tag */
add_filter( 'gsui_filter_genesis_shortcodes_ui_args', 'ddw_gsui_change_shortcode_logo', 10, 1 );
/**
* Plugin: Genesis Shortcode UI
* Snippet: Change a Shortcode logo in the UI
*
* @link https://gist.github.com/deckerweb/eeaaa76d469ff0205878f7d2bd6bf21f
<?php
/** Do NOT include the opening php tag */
add_filter( 'gsui_filter_genesis_shortcodes_ui_args', 'ddw_gsui_disable_shortcode_tag', 10, 1 );
/**
* Plugin: Genesis Shortcode UI
* Snippet: Exclude Shortcodes from the UI
*
* @link https://gist.github.com/deckerweb/65bf8c1c38f95cffcb9e2e2dda344345
@deckerweb
deckerweb / language-updates-table.php
Created March 22, 2016 09:13 — forked from swissspidy/language-updates-table.php
Display a table with available translation updates on the WordPress update screen
<?php
/**
* Plugin Name: Translation Updates Table
*
* @author Pascal Birchler <[email protected]>
* @license GPL2+
*/
/**
* Displays a table with available translation updates.
@deckerweb
deckerweb / gw-gravity-forms-change-field-id.js
Created January 26, 2016 15:57 — forked from spivurno/gw-gravity-forms-change-field-id.js
Gravity Wiz // Gravity Forms // Change Field ID via Browser Console
/**
* Gravity Wiz // Gravity Forms // Change Field ID via Browser Console
*
* Provides a simple function for changing the ID of a Gravity Forms field via the browser console from the Form Editor page.
*
* @version 1.0
* @author David Smith <david@gravitywiz.com>
* @license GPL-2.0+
* @link http://gravitywiz.com/changing-your-gravity-forms-field-ids/
* @video http://www.screencast.com/t/STm1eLZEsR9q
@deckerweb
deckerweb / wpseo-iconfix.php
Created December 3, 2015 10:22 — forked from krafit/wpseo-iconfix.php
Nachdem der Schmerz, den wpSEO-Menüpunkt ansehen zu müssen zu groß wurde, habe ich das Icon im Admin-Menü ersetzt.
if (function_exists(wpseo_autoload)) {
function krafit_repair_wpseo() {
?>
<style>
#adminmenu #toplevel_page_wpseo div.wp-menu-image img {
display: none;
}
#adminmenu #toplevel_page_wpseo div.wp-menu-image::before {
content: "\f511";
@deckerweb
deckerweb / gf-responsive.css
Created November 17, 2015 20:28
Gravity Forms responsive // Source: http://codepad.co/s/710e84
.gform_body ul{
list-style: none;
margin: 0;
padding: 0;
li{
label{margin: 0px;}
margin-bottom: 20px;
input[type=text], input[type=email], textarea {
@deckerweb
deckerweb / multisite_custom_my_sites_menu_titles.php
Created November 16, 2015 08:11 — forked from glueckpress/multisite-custom-my-sites-menu-titles.php
Custom site titles for the My Sites network admin bar menu in a WordPress multisite network. Configure first function, then auto-activate by saving this file in wp-content/mu-plugins, or network activate as a regular plugin.
<?php
/**
* Plugin Name: Custom My Sites Menu Titles
* Description: Custom site titles for the My Sites network admin bar menu. Multisite only.
* Version: 2015.11
* Author: Caspar Hübinger
* Author URI: https://profiles.wordpress.org/glueckpress
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
@deckerweb
deckerweb / gist:1e17c328b5f36adfecb5
Created November 3, 2015 11:31 — forked from vanbernaert/gist:4dd1557abda08e7be90a
Gravity Forms: restrict days on datepicker
jQuery(function () {
// 0 = monday, 1 = tuesday, 2 = wednesday, 3 = thursday,
// 4=friday, 5 = saturday, 6=sunday
var daysToDisable = [2, 4, 5];
jQuery("#input_id_id").datepicker({
beforeShowDay: disableSpecificWeekDays
});
@deckerweb
deckerweb / genesis-site-title.php
Created October 6, 2015 18:33 — forked from cdils/genesis-site-title.php
Filter the Genesis SEO Title to output with a custom class.
// Filter the title with a custom function
add_filter('genesis_seo_title', 'wap_site_title' );
// Add additional custom style to site header
function wap_site_title( $title ) {
// Change $custom_title text as you wish
$custom_title = '<span class="custom-title">WA</span>Estate';
// Don't change the rest of this on down