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
// Make an element in the page go full width | |
// Author: Bill Erickson | |
// URL: http://www.billerickson.net/code/full-width-element-middle-page/ | |
function explodeWidth() { | |
var browserWidth = $(document).width(); | |
var wrapWidth = $('.site-inner .wrap').width(); | |
var margin = ( ( browserWidth - wrapWidth ) / 2 ); | |
$('.explode-width').css( 'margin-left', - margin ).css( 'margin-right', - margin ); | |
} |
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
$is-ie8: false !default; | |
// Compass cross-browser support configuration | |
$legacy-support-for-ie6: false; | |
$legacy-support-for-ie7: false; | |
$legacy-support-for-ie8: true; | |
// Susy settings | |
// ------------------------------------------------ |
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
define('WP_DEBUG', true); | |
/** | |
* When debug mode is enabled, you can enable logging to store errors in wp-content/debug.log | |
* This is useful for finding errors that might not get displayed on screen | |
* | |
* The next conditional section will make sure errors are not shown to users when logging is enabled | |
* This helps with quick troubleshooting on live sites | |
*/ | |
define('WP_DEBUG_LOG', 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 | |
/** | |
* Change Excerpt More text | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/change-excerpt-more-text | |
* | |
* @param string original more text | |
* @return string modified more text | |
*/ | |
function be_excerpt_more( $more ) { |
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 | |
/** | |
* Customize Read More Link | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/read-more-link | |
* | |
* @param string | |
* @return string | |
*/ | |
function be_more_link($more_link) { |
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 | |
/** | |
* Customize Roles & Capabilities | |
* | |
* @package Dachis | |
* @subpackage Core Functionality | |
* @version 1.0 | |
* @author Bill Erickson <bill@billerickson.net> | |
* @copyright Copyright (c) 2011, Bill Erickson |
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( 'default_content', 'be_page_default' ); | |
/** | |
* Default Content for Page Editor | |
* @link http://wp.smashingmagazine.com/2011/10/14/advanced-layout-templates-in-wordpress-content-editor/ | |
* | |
* @param string $content | |
* @return string | |
*/ |
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( 'display_posts_shortcode_no_results', 'be_no_results' ); | |
/** | |
* Display Posts Shortcode - Display message if no results | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/display-posts-shortcode-no-results | |
* | |
* @param string $output, default is empty |