🏄♂️
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
.visually-hidden { /*https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html*/ | |
position: absolute !important; | |
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ | |
clip: rect(1px, 1px, 1px, 1px); | |
padding:0 !important; | |
border:0 !important; | |
height: 1px !important; | |
width: 1px !important; | |
overflow: hidden; | |
} |
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
<meta property="og:image" content="" /> | |
<meta property="og:description" content="" /> | |
<meta property="og:title" content="" /> | |
<meta property="og:locale" content="en_GB" /> | |
<meta property="og:site_name" content="" /> |
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
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ | |
/* Document | |
========================================================================== */ | |
/** | |
* 1. Correct the line height in all browsers. | |
* 2. Prevent adjustments of font size after orientation changes in | |
* IE on Windows Phone and in iOS. | |
*/ |
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
/*///////////////////////////////////////// | |
/// NOT | |
*///////////////////////////////////////// | |
@mixin not($ignorList...) { | |
//if only a single value given | |
@if (length($ignorList) == 1){ | |
//it is probably a list variable so set ignore list to the variable | |
$ignorList: nth($ignorList,1); | |
} |
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
/*///////////////////////////////////////// | |
/// ACTIVE STATES | |
*///////////////////////////////////////// | |
@mixin active-states() { | |
&:hover, | |
&:focus, | |
&:active { @content } | |
} |
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
/*///////////////////////////////////////// | |
/// MEDIA QUERIES | |
*///////////////////////////////////////// | |
/** | |
* Mixins for defining media queries. These mixins should always be used | |
* to define media query breakpoints. | |
*/ | |
@mixin bp-min-width($width) { |
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 WP Emoji | |
remove_action('wp_head', 'print_emoji_detection_script', 7); | |
remove_action('wp_print_styles', 'print_emoji_styles'); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
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 jQuery Migrate Script from header and Load jQuery from Google API | |
function crunchify_stop_loading_wp_embed_and_jquery() { | |
if (!is_admin()) { | |
wp_deregister_script('wp-embed'); | |
wp_deregister_script('jquery'); // Bonus: remove jquery too if it's not required | |
} | |
} | |
add_action('init', 'crunchify_stop_loading_wp_embed_and_jquery'); |
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
function register_my_custom_menu_page() { | |
add_menu_page( 'Page Title', 'Menu Title', 'manage_options', '../wp-content/themes/index.html', '', 'dashicons-book', 3 ); | |
} | |
add_action( 'admin_menu', 'register_my_custom_menu_page' ); |
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
// Allow SVG files to be uploaded to the media library | |
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) { | |
global $wp_version; | |
if ( $wp_version !== '4.7.1' ) { | |
return $data; | |
} | |
$filetype = wp_check_filetype( $filename, $mimes ); |
OlderNewer