Skip to content

Instantly share code, notes, and snippets.

@pmgllc
pmgllc / gist:5391530
Created April 15, 2013 21:47
plugin settings link??
// Add settings link on plugin page
add_filter( "plugin_action_links_stealth-login-page", 'slp_plugin_settings_link' );
function slp_plugin_settings_link($links) {
$settings_link = '<a href="'. admin_url('options-general.php?page=stealth-login-page') .'">' . __('Settings') . '</a>';
array_unshift($links, $settings_link);
return $links;
}

Developer Contract

Revised date: 01/19/2013

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.

@pmgllc
pmgllc / gist:5059139
Created February 28, 2013 18:53
Genesis reposition code not working?
// Reposition the footer
remove_action('genesis_footer', 'genesis_footer_markup_open', 5);
remove_action('genesis_footer', 'genesis_do_footer');
remove_action('genesis_footer', 'genesis_footer_markup_close', 15);
add_action('genesis_after', 'genesis_footer_markup_open', 5);
add_action('genesis_after', 'genesis_do_footer');
add_action('genesis_after', 'genesis_footer_markup_close', 15);
@pmgllc
pmgllc / pmg_comment_form_args
Created April 17, 2012 21:02
Genesis - Reword Speak Your Mind
// Modify the speak your mind text
add_filter( 'genesis_comment_form_args', 'pmg_comment_form_args' );
function pmg_comment_form_args($args) {
$args['title_reply'] = 'Leave a Comment';
return $args;
}
@pmgllc
pmgllc / pmg_add_customcss
Created April 13, 2012 23:59
Genesis Custom CSS via functions.php
// Add custom.css file in <head>
add_action('wp_head', 'pmg_add_customcss');
function pmg_add_customcss( ) {
$pmg_css_link = '<link rel="stylesheet" type="text/css" media="screen" href="'.get_bloginfo( 'stylesheet_directory' ).'/custom.css" />';
echo $pmg_css_link;
}
@pmgllc
pmgllc / pmg_footer_scripts
Created April 13, 2012 23:58
Genesis Sharing Buttons - Footer Scripts