Skip to content

Instantly share code, notes, and snippets.

View SenecaOne's full-sized avatar

Jen Huls SenecaOne

View GitHub Profile
@SenecaOne
SenecaOne / wp-custom-gforms-button
Created March 23, 2015 12:34
Gravity Forms custom button
<?php
// filter the Gravity Forms button type
add_filter("gform_submit_button", "form_submit_button", 10, 2);
function form_submit_button($button, $form){
return "<button class='button' id='gform_submit_button_{$form["id"]}'><span>Submit</span></button>";
}
@SenecaOne
SenecaOne / wp-enqueue-fontawesome
Created March 23, 2015 12:33
WordPress enqueue FontAwesome
<?php
wp_enqueue_style( 'prefix-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', array(), '4.3.0' );
@SenecaOne
SenecaOne / wp-ms-config
Created March 23, 2015 12:32
WordPress Multisite config/htaccess
wp-config.php
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'intranet.dev');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
@SenecaOne
SenecaOne / center-absolute-position
Last active August 29, 2015 14:17
Absolute positioning center
#container {
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
}
@SenecaOne
SenecaOne / simple-clearfix
Created March 23, 2015 12:31
Simple clearfix
.group:after {
content: "";
display: table;
clear: both;
}
@SenecaOne
SenecaOne / DNSMasq-osx
Created March 23, 2015 12:30
DNSMasq OS X
# Configuring Dnsmasq
# http://passingcuriosity.com/2013/dnsmasq-dev-osx/
sudo nano /usr/local/etc/dnsmasq.conf
#Add:
address=/dev/192.168.56.101
# Restart dnsmasq
sudo kill $(ps aux | grep '[d]nsmasq' | awk '{print $2}')