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
<?php | |
//* Do NOT include the opening php tag | |
// Filter the genesis_seo_title function to use an image for the logo instead of a background image | |
add_filter( 'genesis_seo_title', 'b3m_header_title', 10, 3 ); | |
function b3m_header_title( $title, $inside, $wrap ) { | |
$inside = sprintf( '<a href="%s" title="%s"><img src="'. get_stylesheet_directory_uri() .'/images/logo.png" alt="%s" /></a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) ); | |
return sprintf( '<%1$s id="title">%2$s</%1$s>', 'h4', $inside ); | |
} |
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 smiley place added to your footer by the WordPress JetPack plugin */ | |
img#wpstats { | |
display: none; | |
} |
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
<?php | |
/* | |
Template Name: Error 404 | |
*/ | |
/** | |
* Handles the display of website 404 page. Includes a widget area for easy customization. | |
* | |
* @author B3Marketing, LLC — Rick R. Duncan | |
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) |
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
<?php | |
//* Do NOT include the opening php tag | |
//* Login Screen: Change login logo | |
add_action( 'login_head', 'b3m_custom_login_logo' ); | |
function b3m_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/login.png) !important; background-size: 311px 100px !important;height: 100px !important; width: 311px !important; margin-bottom: 0 !important; padding-bottom: 0 !important; } | |
.login form { margin-top: 10px !important; } | |
</style>'; |
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
<?php | |
//-> Do NOT include the opening php tag | |
//-> Login Screen: Change login logo hover text | |
add_filter( 'login_headertitle', 'rvam_login_logo_url_title' ); | |
function rvam_custom_header_title() { | |
return 'REPLACE THIS WITH YOUR TEXT'; | |
} |
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
<?php | |
//-> Do NOT include the opening php tag | |
// Login Screen: Set 'remember me' to be checked | |
add_action( 'init', 'rvam_login_checked_remember_me' ); | |
function rvam_login_checked_remember_me() { | |
add_filter( 'login_footer', 'rvam_rememberme_checked' ); | |
} | |
function rvam_rememberme_checked() { |
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
<?php | |
//-> Do NOT include the opening php tag | |
// Login Screen: Don't inform user which piece of credential was incorrect | |
add_filter ( 'login_errors', 'rvam_failed_login' ); | |
function rvam_failed_login () { | |
return 'The login information you have entered is incorrect. Please try again.'; | |
} |
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
<?php | |
//-> Do NOT include the opening php tag | |
// Custom admin dashboard header logo | |
add_action('admin_head', 'rvam_custom_admin_logo'); | |
function rvam_custom_admin_logo() { | |
echo '<style type="text/css">#icon-index { background-image: url('.get_stylesheet_directory_uri().'/images/logo-dashboard.png) !important; background-position: 0 0;}</style>'; | |
} |
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
<?php | |
//-> Do NOT include the opening php tag | |
// Add theme info box into WordPress Dashboard | |
add_action('wp_dashboard_setup', 'rvam_add_dashboard_widgets' ); | |
function rvam_add_dashboard_widgets() { | |
wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details', 'rvam_theme_info'); | |
} | |
function rvam_theme_info() { |
OlderNewer