Skip to content

Instantly share code, notes, and snippets.

View rustyeddy's full-sized avatar
💭
Hacking

Rusty Eddy rustyeddy

💭
Hacking
View GitHub Profile
@rustyeddy
rustyeddy / category-page.php
Last active August 29, 2015 14:04
Formatting the category pages
if ( is_single() || is_page() ) {
gs_remove_entry_title();
$title = get_the_title();
} else if ( is_author() ) {
$title = get_the_author();
$class .= ' author';
@rustyeddy
rustyeddy / genesis-entry-title-banner.php
Last active August 29, 2015 14:04
Remove Genesis Post / Entry Title
/**
* This function will remove the title from a post in a Genesis child theme
*/
function gs_remove_entry_title()
{
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
}
@rustyeddy
rustyeddy / genesis-entry-banner.scss
Last active August 29, 2015 14:04
Genesis Entry Title Banner
@mixin title-darkener($start-color:#f7f7f7, $howmuch:15%) {
$end-color: darken( $start-color, $howmuch );
@include radial-gradient( $start-color, $end-color );
border-bottom: 1px solid darken( $start-color, $howmuch / 2 );
}
@mixin title-background($start-color:#f7f7f7, $end-color:#d2d2d2) {
@include radial-gradient( $start-color, $end-color );
border-bottom: 1px solid darken( $end-color, 80% );
}

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

/*
* Call this function to place the primary nav bar above the header
*/
function lpo_move_primarynav_above_header()
{
//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );
}

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@rustyeddy
rustyeddy / genesis-footer-banner.php
Last active December 24, 2015 20:18
Place a footer banner above the footer widgets area in the genesis theme.
@rustyeddy
rustyeddy / .gitignore
Created October 5, 2013 17:51
This is my .gitingore
*~
foo
\#*
data
reports
diff
*.diff
*.patch
@rustyeddy
rustyeddy / Copyright EC
Last active December 14, 2015 22:59
Cut-n-Paste into Genesis Simple Edits footer area for our websites.
@rustyeddy
rustyeddy / load-custom-style-sheet.css
Created March 5, 2013 15:41
Darn, I can't remember where I stole this from. Either @bgardner or from my.studiopress.com, I think. Anyway, It's really straight forward but I use it all the time. I like to avoid mixing my style changes / additions to the theme as provided.
// Load custom style sheet
add_action( 'wp_enqueue_scripts', 'custom_load_custom_style_sheet' );
function custom_load_custom_style_sheet() {
wp_enqueue_style( 'custom-stylesheet', CHILD_URL . '/custom.css', array(), PARENT_THEME_VERSION );
}