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
<wpcf-fields-select-option-australia> | |
<title>Australia</title> | |
<value>1</value> | |
</wpcf-fields-select-option-australia> | |
<wpcf-fields-select-option-canada> | |
<title>Canada</title> | |
<value>2</value> | |
</wpcf-fields-select-option-canada> | |
<wpcf-fields-select-option-france> | |
<title>France</title> |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// Include Media (v1.1.2) | |
// ---- | |
@import "include-media"; | |
$lap: ">phone", "<=tablet"; |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// Include Media (v1.1.2) | |
// ---- | |
@import "include-media"; | |
// New default map for Aliases of breakpoints and media expressions |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// Include Media (v1.1.2) | |
// ---- | |
@import "include-media"; | |
// new media mixin, supporting simple lists as parameters | |
@mixin media($conditions...) { |
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 | |
/** | |
* Debugging WordPress things. | |
* | |
* All of this belongs in your wp-config.php file. | |
* | |
* This will make sure that the code you release is, at a minimum, | |
* relatively free of PHP notices and warnings. | |
* | |
* - WP_DEBUG: This turns on debugging mode. |
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
/* ============================================================================= | |
WordPress WYSIWYG Editor Styles | |
========================================================================== */ | |
.entry-content img { | |
margin: 0 0 1.5em 0; | |
max-width: 100%; | |
height: auto; | |
} | |
.alignleft, img.alignleft { |
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 | |
add_action( 'admin_init', function() { | |
// remove the color scheme picker | |
remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); | |
// force all users to use the "Ectoplasm" color scheme | |
add_filter( 'get_user_option_admin_color', function() { | |
return 'ectoplasm'; |
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 | |
add_filter( 'get_user_option_admin_color', function( $color_scheme ) { | |
global $_wp_admin_css_colors; | |
if ( ! isset( $_wp_admin_css_colors[ $color_scheme ] ) ) { | |
$color_scheme = 'ectoplasm'; | |
} |
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 | |
add_action( 'pre_option_image_default_link_type', function() { | |
return 'none'; // 'file', 'post' or '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 | |
add_action( 'do_feed_rdf', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'do_feed_rss', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'do_feed_rss2', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'do_feed_atom', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'init', function() { | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
}); |