Skip to content

Instantly share code, notes, and snippets.

View rossteasley's full-sized avatar

Ross Teasley rossteasley

View GitHub Profile
@rossteasley
rossteasley / gist:3058013
Created July 6, 2012 04:08
WordPress Login Logo swap for Genesis Child Theme. Edit image filename and add to functions.php
function rgt_custom_dashboard_logo(){
echo '<style type="text/css">
h1 a {
background-image:url('.get_stylesheet_directory_uri().'/images/put-your-logo-filename-here.gif) !important;
}
</style>';
}
add_action('login_head', 'rgt_custom_dashboard_logo');
@rossteasley
rossteasley / gist:2981540
Created June 24, 2012 04:04
Gravity Forms Quiz code
// http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms
add_action('gform_pre_submission', 'ch_total_quiz_values');
function ch_total_quiz_values ($form) {
// change the number 20 here to your form ID
// if this is not form 20, don't do any processing
if($form['id'] != 3)
return $form;
// otherwise ...
$score = 0;