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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* Redirect categories to pages | |
*/ | |
function cf_redirect_categories() { | |
if ( is_category( 'appliances' ) ) { |
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 | |
/* Copy the Content Below this line - DO NOT INCLUDE THE <?php ABOVE */ | |
function cf_login_obscure() { | |
return "Something didn't work out right!"; | |
} | |
add_filter( 'login_errors', 'cf_login_obscure' ); |
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 | |
/* Copy the Content Below this line - DO NOT INCLUDE THE <?php ABOVE */ | |
// Add snippet to functions.php file | |
function cf_new_admin_account() { | |
$user = 'admin'; | |
$pass = 'password'; |
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
/** BROWSER SCROLLBAR **/ | |
/* Scrollbar Styling */ | |
::-webkit-scrollbar { | |
width: 11px; | |
} | |
/* The new scrollbar will have a flat appearance with the set background color */ | |
::-webkit-scrollbar-track { | |
background-color: #FFD600; |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* password-reset-link-duration.php | |
*/ | |
add_filter( 'password_reset_expiration', 'cf_password_reset_link_expiration', 99, 1 ); | |
function cf_password_reset_link_expiration($seconds){ |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* display-chosen-categories.php | |
*/ | |
//* Display only chosen categories on blog page | |
function cf_display_chosen_categories( $query ) { |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* exclude-blog-categories.php | |
*/ | |
function cf_exclude_chosen_categories( $query ) { |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* dequeue-assets.php | |
* Resource: http://orbitingweb.com/blog/preventing-plugins-from-loading-js-css-on-all-pages/ | |
*/ | |
//* Finding handles for plugins |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* block-role-admin-access.php | |
*/ | |
function cf_block_role_admin_access() { |
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
jQuery(document).ready(function($){ | |
/* Smooth Scroll Anchor Links */ | |
$(document).on('click', 'a[href*="#"]', function (e) { | |
e.preventDefault(); | |
var target = this.hash; | |
var $target = $(target); | |
$('html, body').stop().animate({ |
OlderNewer