Skip to content

Instantly share code, notes, and snippets.

View paulletourneau's full-sized avatar

Paul Letourneau paulletourneau

View GitHub Profile
@paulletourneau
paulletourneau / Use your own custom login logo
Last active December 29, 2015 04:59
Custom Ladies Learning Code login logo. 1) Paste the code below into your functions.php file 2) Put the 'llc-logo.png' image file within you ' i ' folder in the 'ladies-learning-code' theme file
@paulletourneau
paulletourneau / Remove dashboard widgets
Last active December 29, 2015 05:08
Disable ALL unnecessary WordPress Dashboard widgets except 'Right Now' and 'Recent Comments'. Paste this into your functions.php file
//* Remove dashboard widgets
function remove_dashboard_widgets() {
global $wp_meta_boxes;
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
//* unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);
//* unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
@paulletourneau
paulletourneau / No link photo upload default
Created November 23, 2013 22:04
No link photo upload default
@paulletourneau
paulletourneau / gist:8058420
Created December 20, 2013 17:35
Replace the code in backstretch-set.js with this code and website will now present the linked images as a slideshow.
jQuery(document).ready(function($) {
$.backstretch([
"http://dl.dropbox.com/u/515046/www/outside.jpg"
, "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
, "http://dl.dropbox.com/u/515046/www/cheers.jpg"
], {duration: 3000, fade: 750});
});
@paulletourneau
paulletourneau / gist:8062550
Last active December 31, 2015 23:49
Show Column Dashboard Layout Options & Default to 2 Columns in WordPress 3.8
//* Show Column Dashboard Layout Option & Default to 2 Columns
function pl_dashboard_columns() {
add_screen_option(
'layout_columns',
array(
'max' => 2,
'default' => 1
)
);
}