For a Replacement visit this project on our GitHub organisation account.
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 Blog to Breadcrumbs | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/adding-blog-to-genesis-breadcrumbs/ | |
* | |
* @param string original breadcrumb | |
* @return string modified breadcrumb | |
*/ | |
function be_add_blog_crumb( $crumb, $args ) { |
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('single_add_to_cart_text', 'woo_custom_cart_button_text'); | |
function woo_custom_cart_button_text() { | |
return __('My Button Text', 'woocommerce'); | |
} |
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
// Enable Automatic Updates for all updates | |
define( 'WP_AUTO_UPDATE_CORE', true ); | |
// Disable Automatic Updates for all updates | |
define( 'WP_AUTO_UPDATE_CORE', false ); | |
// Only allow Automatic Updates for minor updates | |
define( 'WP_AUTO_UPDATE_CORE', 'minor' ); |
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 //remove this line | |
function disable_self_ping( &$links ) { | |
foreach ( $links as $l => $link ) | |
if ( 0 === strpos( $link, get_option( 'home' ) ) ) | |
unset($links[$l]); | |
} | |
add_action( 'pre_ping', 'disable_self_ping' ); |
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 | |
/** | |
* Template Name: Page Builder | |
* | |
* This page template only works with Genesis child themes and works great with the | |
* Beaver Builder plugin. Learn more: http://clickwp.com/blog/beaver-builder/ | |
*/ | |
// Force full width content layout to remove sidebar |
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 | |
/* Removing custom title/logo metabox from Genesis theme options page. | |
* See http://www.billerickson.net/code/remove-metaboxes-from-genesis-theme-settings/ | |
* Updated to use $_genesis_admin_settings instead of legacy variable in Bill's example. | |
*/ | |
add_action( 'genesis_theme_settings_metaboxes', 'be_remove_metaboxes' ); | |
function be_remove_metaboxes( $_genesis_admin_settings ) { | |
remove_meta_box( 'genesis-theme-settings-header', $_genesis_admin_settings, 'main' ); |
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('woocommerce_email_headers', 'woo_cc_emails' ); | |
function woo_cc_emails() { | |
return 'Bcc: youremail@yourdomain.com' . "\r\n"; | |
} | |
?> |
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 copy opening php tag | |
// Force Stupid IE to NOT use compatibility mode | |
add_filter( 'wp_headers', 'wsm_keep_ie_modern' ); | |
function wsm_keep_ie_modern( $headers ) { | |
if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false ) ) { | |
$headers['X-UA-Compatible'] = 'IE=edge,chrome=1'; | |
} | |
return $headers; |
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 | |
//* DON'T ADD ABOVE | |
/* | |
* | |
* READ ME: | |
* I'm using Beaver Builder for page post types and I don't want that option on | |
* WooCommerce store, cart, checkout, and my account pages. I don't want the client to ask why she can't change |
OlderNewer