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', 'b3m_login_logo_url_title' ); | |
function b3m_login_logo_url_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: Use your own URL for login logo link | |
add_filter( 'login_headerurl', 'b3m_url_login' ); | |
function b3m_url_login(){ | |
return get_bloginfo( 'wpurl' ); //This line keeps the link on current website instead of WordPress.org | |
} |
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 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 ); |
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
/* 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; |
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
.sidebar .widgettitle span { | |
background: #fff none repeat scroll 0 0; | |
padding: 0 2rem; | |
} | |
.sidebar .widgettitle { | |
background: #ffffff url("images/bg-double-bar.png") repeat-x scroll center center; | |
text-align: center; | |
} |
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 this comment or the opening php tag above | |
//* Don't Update Theme | |
//* @author Mark Jaquith | |
//* @link http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/ | |
add_filter( 'http_request_args', 'cws_hidden_theme_12345', 5, 2 ); | |
function cws_hidden_theme_12345( $r, $url ) { | |
if ( 0 !== strpos( $url, 'http://api.wordpress.org/themes/update-check' ) ) |
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 | |
/** | |
* Plugin Name: WordPress Functionality Plugin | |
* Plugin URI: http://rickrduncan.com/wordpress/functionality-plugin | |
* Description: Core WordPress customizations that are theme independent. | |
* Author: Rick R. Duncan - B3Marketing, LLC | |
* Author URI: http://rickrduncan.com | |
* | |
* | |
* Version: 1.0.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
<?php | |
//* Do NOT include this comment or the opening php tag above | |
//* Remove 'Editor' from 'Appearance' Menu in WordPress. | |
//* Prevent users from editing theme and plugin files directly from within the WordPress control panel. | |
define( 'DISALLOW_FILE_EDIT', true ); |
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 X-Frame-Options: This will keep people from using any page on our website in an IFRAME | |
//* https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options | |
function add_header_xframe() { | |
header( 'X-Frame-Options: DENY' ); | |
} | |
add_action( 'send_headers', 'add_header_xframe' ); |