Skip to content

Instantly share code, notes, and snippets.

View Twanneman's full-sized avatar

Twanneman Twanneman

View GitHub Profile
<?php
/**
* Gravity Wiz // Gravity Forms // Map Submitted Field Values to Another Field
*
* Preview your Gravity forms on the frontend of your website. Adds a "Live Preview" link to the Gravity Forms toolbar.
*
* Usage
*
* 1 - Enable "Allow field to be populated dynamically" option on field which should be populated.
* 2 - In the "Parameter Name" input, enter the merge tag (or merge tags) of the field whose value whould be populated into this field.
@gregrickaby
gregrickaby / Custom_Walker_Nav_Menu.php
Created July 31, 2014 13:57
Add HTML Markup to WordPress Nav Menu Editor
<?php
/**
* Create HTML list of nav menu items.
*
* @since 3.0.0
* @uses Walker
*/
class Custom_Walker_Nav_Menu extends Walker_Nav_Menu {
/**
@Zodiac1978
Zodiac1978 / .htaccess
Last active June 5, 2025 14:13
Safer WordPress with these .htaccess additions
# Don't show errors which contain full path diclosure (FPD)
# Use that line only if PHP is installed as a module and not per CGI
# try using a php.ini in that case.
# Change mod_php5.c to mod_php7.c if you are running PHP7
<IfModule mod_php5.c>
php_flag display_errors Off
</IfModule>
# Don't list directories
<IfModule mod_autoindex.c>
@deckerweb
deckerweb / gist:b7e70a52ed76b6486795
Last active August 8, 2021 02:39
WordPress Forms plugin comparison table - by David Decker (@deckerweb) of deckerweb.de
@addyosmani
addyosmani / README.md
Last active November 24, 2025 17:23 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@hofmannsven
hofmannsven / README.md
Last active December 17, 2025 09:10
SCSS Cheatsheet
@helgatheviking
helgatheviking / KIA-comment-blacklist.txt
Last active January 28, 2023 09:06
Customizing the WordPress Install Process with install.php - All files go in your /wp-content/ folder. http://www.kathyisawesome.com/421/customizing-wordpress-install/
_abercrombie
_account
_adidas
_advantage
_alviero
_article
_asics
_babe
_backup
_barata
@ericelliott
ericelliott / essential-javascript-links.md
Last active December 10, 2025 04:01
Essential JavaScript Links
@stevenslack
stevenslack / class-drop-walker-nav.php
Last active November 24, 2020 07:53
WordPress Walker Nav extended to add data attributes for Drop support
<?php
/**
* Extends WordPress nav menu by adding data attributes and
* markup for Drop by Chris Ferdinandi
*
* Version 6.1.1
*
* drop source: https://github.com/cferdinandi/drop
*/
@Phoenix2k
Phoenix2k / admin.php
Last active October 25, 2024 03:59
WordPress Gists
<?php
/**
* Adds support for `admin.css` (with child-theme support)
*
* You can use this to style anything from edit buttons on the frontend
* to customizing your admin screen for logged in users
*
* @link http://codex.wordpress.org/Function_Reference/wp_enqueue_script
*/
add_action( 'admin_enqueue_scripts', 'theme_admin_styles' );