Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Letourneau paulletourneau

View GitHub Profile
@paulletourneau
paulletourneau / gist:8062550
Last active Dec 31, 2015
Show Column Dashboard Layout Options & Default to 2 Columns in WordPress 3.8
View gist:8062550
//* Show Column Dashboard Layout Option & Default to 2 Columns
function pl_dashboard_columns() {
add_screen_option(
'layout_columns',
array(
'max' => 2,
'default' => 1
)
);
}
@paulletourneau
paulletourneau / gist:8058420
Created Dec 20, 2013
Replace the code in backstretch-set.js with this code and website will now present the linked images as a slideshow.
View gist:8058420
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});
});
View No link photo upload default
@paulletourneau
paulletourneau / Remove dashboard widgets
Last active Dec 29, 2015
Disable ALL unnecessary WordPress Dashboard widgets except 'Right Now' and 'Recent Comments'. Paste this into your functions.php file
View Remove dashboard widgets
//* 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 / Use your own custom login logo
Last active Dec 29, 2015
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
View Use your own custom login logo