Skip to content

Instantly share code, notes, and snippets.

@neilgee
neilgee / git.css
Last active December 7, 2023 02:08
Git Command Line Reference - Notes, Cheatsheet and reminders on Git set up and commands
/*
* Set up your Git configuration
*/
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "nano"
@neilgee
neilgee / genesis-facebook-like-box.php
Created March 19, 2014 05:13
Genesis Facebook Like Box HTML5 & Responsive
/*Facebook* CSS Bit/
#fb-root {
display: none;
}
.fb_iframe_widget, .fb_iframe_widget span, .fb_iframe_widget span iframe[style] {
width: 100% !important;
}
@neilgee
neilgee / genesis-footer.php
Last active September 15, 2016 22:49
Replace the Genesis Footer Area with a widget
<?php
/**
* WC_Shipping_USPS class.
*
* @extends WC_Shipping_Method
*/
class WC_Shipping_USPS extends WC_Shipping_Method {
private $endpoint = 'http://production.shippingapis.com/shippingapi.dll';
@neilgee
neilgee / functions.php
Last active August 29, 2015 13:57 — forked from longjasonm/functions.php
Genesis Four Column Footer Widgets
<?php
//* Do NOT include the opening php tag
// Add support for 4-column footer widgets
add_theme_support( 'genesis-footer-widgets', 4 );
@neilgee
neilgee / preheaderwidgetararea.php
Last active August 29, 2015 13:57
Genesis Pre-Header Widget Area Full Width Wrap Left and Right
<?php
//Add in new Widget areas
function genesischild_extra_widgets() {
genesis_register_sidebar( array(
'id' => 'preheaderleft',
'name' => __( 'preHeaderLeft', 'genesischild' ),
'description' => __( 'This is the preheader Left area', 'genesischild' ),
'before_widget' => '<div class="first one-half preheaderleft">',
'after_widget' => '</div>',
@neilgee
neilgee / background-horizontal-rule.css
Created April 1, 2014 04:30
Horizontal Rule Background Through Heading with CSS
h4 {font-size:20px;border-top: 3px solid #4f4e4d; font-family: Arial, sans-serif;}
h4 span { position: relative; top: -15px; padding: 0px 30px; background: #ccc;}
input {
transition-property: opacity;
transition-delay: 0.3s;
transition-duration: .5s;
}
input:hover {
opacity:.7;
}
@neilgee
neilgee / pricing-table.html
Created April 4, 2014 03:00
Pricing Table
<style>
.pricing_table {
line-height: 150%;
font-size: 12px;
margin: 0 auto;
width: 75%;
max-width: 800px;
padding-top: 10px;
margin-top: 100px;
}
@neilgee
neilgee / footerheaderwrap.php
Last active May 4, 2017 03:20
Footer Widget Header Full Width Wrap
<?php
//do not add in opening php tag
/**
* Add a Header Row above the 3 footer widgets in Genesis Theme
*
* @package Add a Header Row above the 3 footer widgets
* @author Neil Gee
* @link https://wpbeaches.com/add-full-width-row-footer-widgets-genesis-child-theme/
* @copyright (c)2014, Neil Gee