Skip to content

Instantly share code, notes, and snippets.

Rick R. Duncan rickrduncan

Block or report user

Report or block rickrduncan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wp-admin-footer-text.php
View wp-failed-login.php
<?php
//* Do NOT include the opening php tag
//* Login Screen: Don't inform user which piece of credential was incorrect
add_filter ( 'login_errors', 'b3m_failed_login' );
function b3m_failed_login () {
return 'The login information you have entered is incorrect. Please try again.';
}
View wp-remember-me.php
<?php
//* Do NOT include the opening php tag
//* Login Screen: Set 'remember me' to be checked
add_action( 'init', 'b3m_login_checked_remember_me' );
function b3m_login_checked_remember_me() {
add_filter( 'login_footer', 'b3m_rememberme_checked' )
;
}
View wp-login-headertitle.php
<?php
//* Do NOT include the opening php tag
//* Login Screen: Change login logo hover text
add_filter( 'login_headertitle', 'b3m_login_logo_url_title' );
function b3m_login_logo_url_title() {
return 'REPLACE THIS WITH YOUR TEXT';
}
View logo-login.php
<?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>';
View genesis-breadcrumb-args.php
<?php
//* Do NOT include the opening php tag
//* Default arguments from the Genesis Breadcrumb
//* genesis/lib/classes/breadcrumb.php
public function __construct() {
//* Default arguments
$this->args = array(
'home' => __( 'Home', 'genesis' ),
'sep' => __( ' <span aria-label="breadcrumb separator">/</span> ', 'genesis' ),
'list_sep' => ', ',
View genesis-breadcrumb-fontawesome.php
<?php
//* Do NOT include the opening php tag
//* STEP 1
//* Enqueue styles
add_action( 'wp_enqueue_scripts', 'b3m_enqueue_styles' );
function b3m_enqueue_styles() {
wp_enqueue_style( 'fa', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), '4.5.0' );
}
View disallow-file-edit.php
<?php
//* Do NOT include this comment or the opening php tag above
//* Remove 'Editor' from 'Appearance' Menu.
//* This stops users from being able to edit files from within WordPress admin dashboard.
if ( ! defined( 'DISALLOW_FILE_EDIT' ) )
define( 'DISALLOW_FILE_EDIT', true );
View widget-title-3a.css
/* The CSS code you will need to customize and add into your stylesheet */
.widgettitle {
border-bottom: 1px solid #DDDDDD;
}
.widgettitle span {
border-bottom: 1px solid #F0591A;
color: #F0591A;
display: block;
float: left;
View widget-title-3.php
<?php
//* Do NOT include this comment or the opening php tag above
//* Wrap first word of widget title into a span tag
add_filter ( 'widget_title', 'b3m_add_span_widgets' );
function b3m_add_span_widgets( $old_title ) {
$title = explode( " ", $old_title, 2 );
if ( isset( $title[0] ) && isset( $title[1] ) ) {
You can’t perform that action at this time.