This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Clear fix for column classes | |
---------------------------------------------------------------------------------------------------- */ | |
.clear-line:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<strong>Share this image on your site by copying the code below</strong> | |
<textarea onclick='this.focus();this.select()' style='width:540px;height:100px'><p><br /><br /><a href='http://sitelink.com'><img src='http://siteimagelink.com/filename.png' title='' alt='' width='' height='' border='0'/></a></p></textarea></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// REMOVE POST META BOXES | |
function remove_my_post_metaboxes() { | |
remove_meta_box( 'authordiv','post','normal' ); // Author Metabox | |
remove_meta_box( 'commentstatusdiv','post','normal' ); // Comments Status Metabox | |
remove_meta_box( 'commentsdiv','post','normal' ); // Comments Metabox | |
remove_meta_box( 'postcustom','post','normal' ); // Custom Fields Metabox | |
remove_meta_box( 'postexcerpt','post','normal' ); // Excerpt Metabox | |
remove_meta_box( 'revisionsdiv','post','normal' ); // Revisions Metabox | |
remove_meta_box( 'slugdiv','post','normal' ); // Slug Metabox | |
remove_meta_box( 'trackbacksdiv','post','normal' ); // Trackback Metabox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// REMOVE PAGE META BOXES | |
function remove_my_page_metaboxes() { | |
remove_meta_box( 'postcustom','page','normal' ); // Custom Fields Metabox | |
remove_meta_box( 'postexcerpt','page','normal' ); // Excerpt Metabox | |
remove_meta_box( 'commentstatusdiv','page','normal' ); // Comments Status Metabox | |
remove_meta_box( 'commentsdiv', 'page','normal' ); // Comments Metabox | |
remove_meta_box( 'trackbacksdiv','page','normal' ); // Talkback Metabox | |
remove_meta_box( 'slugdiv','page','normal' ); // Slug Metabox | |
remove_meta_box( 'authordiv','page','normal' ); // Author Metabox | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'enable_post_format_ui', '__return_false' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Remove Genesis Layouts: content/sidebar/sidebar, sidebar/sidebar/content, sidebar/content/sidebar */ | |
genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
genesis_unregister_layout( 'sidebar-content-sidebar' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**** Unregister Genesis Widgets ****/ | |
add_action( 'widgets_init', 'unregister_genesis_widgets', 20 ); | |
function unregister_genesis_widgets() { | |
unregister_widget( 'Genesis_eNews_Updates' ); | |
unregister_widget( 'Genesis_Featured_Page' ); | |
unregister_widget( 'Genesis_Featured_Post' ); | |
unregister_widget( 'Genesis_Latest_Tweets_Widget' ); | |
unregister_widget( 'Genesis_Menu_Pages_Widget' ); | |
unregister_widget( 'Genesis_User_Profile_Widget' ); | |
unregister_widget( 'Genesis_Widget_Menu_Categories' ); |
NewerOlder