Skip to content

Instantly share code, notes, and snippets.

@spearsmarketing
spearsmarketing / Genesis Footer Credits Customization
Last active December 12, 2015 07:28
Footer credits customization for Genesis child themes. Add to functions.php file.
@spearsmarketing
spearsmarketing / Login Logo Customization
Last active December 12, 2015 07:28
WordPress custom login logo code.
// Change login logo
add_action('login_head', 'rgt_custom_dashboard_logo');
function rgt_custom_dashboard_logo() {
echo '<style type="text/css">
.login h1 a {
background-image:url('.get_stylesheet_directory_uri().'/images/logo.png) !important;
background-size: 215px 138px !important;
width: 215px !important;
height: 138px !important;
}
@spearsmarketing
spearsmarketing / Admin Footer Logo
Last active December 12, 2015 07:28
WordPress dashboard footer logo.
@spearsmarketing
spearsmarketing / FAQ Manager Plugin Styling
Created February 8, 2013 15:40
Custom styling for the FAQ Manger plugin by Norcross. Add to theme stylesheet.
/*********** FAQ Manager **************/
#faq-block li.faqlist-question,
#faq-block li.faqlist-question a {
color:#80BF61;
padding-bottom:4px;
font-weight:bold;
font-size:110%;
cursor:pointer;
}
@spearsmarketing
spearsmarketing / HTML code to make a phone number clickable
Last active October 23, 2018 12:26
Clickable Phone Number HTML Code
<a href="tel:555-555-5555">555-555-5555</a>
@spearsmarketing
spearsmarketing / Remove a category from rss feed
Created May 6, 2013 17:51
Code to remove WordPress category from RSS feed. Add to functions.php
add_filter('pre_get_posts','custom_feed_filter');
function custom_feed_filter($query) {
if( $query->is_feed )
$query->set('cat','-8');
return $query;
}
@spearsmarketing
spearsmarketing / Remove WP Widgets
Created May 9, 2013 17:31
Unregister Default WordPress Widgets. Add to functions.php.
/**** Remove all wp widgets ****/
function unregister_widgets(){
unregister_widget( 'Akismet_Widget' );
unregister_widget( 'WP_Widget_Pages' );
unregister_widget( 'WP_Widget_Calendar' );
unregister_widget( 'WP_Widget_Links' );
unregister_widget( 'WP_Widget_Recent_Posts' );
unregister_widget( 'WP_Widget_Tag_Cloud' );
unregister_widget( 'WP_Widget_Meta' );
@spearsmarketing
spearsmarketing / Remove Genesis Widgets
Created May 9, 2013 17:35
Unregister Default Genesis Widgets. Add to functions.php file.
/**** 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' );
@spearsmarketing
spearsmarketing / Remove Genesis Layouts
Created May 9, 2013 17:37
Remove Default Genesis Layouts. Add to functions.php file.
/* 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' );
@spearsmarketing
spearsmarketing / Remove Secondary Sidebar
Created May 9, 2013 17:37
Unregister WordPress Secondary Sidebar. Add to functions.php file.
/**** Unregister Secondary Sidebar ****/
unregister_sidebar( 'sidebar-alt' );