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 | |
// Prevent unwanted results from appearing in (future) Stream records - v 1.x | |
add_filter( 'wp_stream_record_array', 'bhww_core_wp_stream_filter_record_array', 10, 1 ); | |
function bhww_core_wp_stream_filter_record_array( $recordarr ) { | |
// BackupBuddy (iThemes) entries | |
$context = 'settings'; | |
$option = 'ithemes-updater-cache'; | |
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
//* Add support for custom header | |
add_theme_support( 'custom-header', array( | |
'admin-preview-callback' => 'sixteen_nine_admin_header_callback', | |
'default-text-color' => 'ffffff', | |
'header-selector' => '.site-header .site-avatar img', | |
'height' => 224, | |
'width' => 224, | |
'wp-head-callback' => '__return_false', | |
) ); |
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( 'tgmsp_before_slider_output', 'tgm_custom_slider_theme' ); | |
function tgm_custom_slider_of_madness( $id ) { | |
// If not the proper slider ID, do nothing. Change to match your slider ID. | |
if ( '324' !== $id ) return; | |
// Dequeue the default styles. | |
wp_dequeue_style( 'soliloquy-style' ); | |
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
/** | |
* Filter Event Organiser to use the timezone set in WordPress settings | |
* | |
* Uses a filter hook found in includes/class-eo-ical-parser.php | |
* | |
* @link http://blackhillswebworks.com/?p=5108 | |
*/ | |
add_filter( 'eventorganiser_ical_timezone', 'bhww_eo_set_timezone' ); |
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
<FilesMatch "\.(?i:pdf|doc|docx|jpg|xls|zip|txt)$"> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</FilesMatch> |
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
/** | |
* Redirect WordPress front end https URLs to http without a plugin | |
* | |
* Necessary when running forced SSL in admin and you don't want links to the front end to remain https. | |
* | |
* @link http://blackhillswebworks.com/?p=5088 | |
*/ | |
add_action( 'template_redirect', 'bhww_ssl_template_redirect', 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
//* Child theme (do not remove) | |
define( 'CHILD_THEME_NAME', __( 'Agency Pro Theme', 'agency' ) ); | |
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/agency/' ); | |
define( 'CHILD_THEME_VERSION', '3.0.20131011' ); |
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
/** | |
* Filter Simple Page Ordering to exclude Pages but include custom post types that are hierarchical but don't have page attributes | |
* | |
* @link http://blackhillswebworks.com/?p=5017 | |
*/ | |
add_filter( 'simple_page_ordering_is_sortable', 'bhww_turn_off_simple_page_ordering_for_pages' ); | |
function bhww_turn_off_simple_page_ordering_for_pages( $sortable ) { | |
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
/* HTML5 version */ | |
.home .site-inner .soliloquy-container { | |
margin: 0 0 20px; | |
} | |
/* non-HTML5 version */ | |
.home #inner .soliloquy-container { | |
margin: 0 0 20px; | |
} |
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
/** | |
* Add a slider to the home page, if there is one to add | |
* | |
* @link http://blackhillswebworks.com/?p=4986 | |
*/ | |
add_action( 'genesis_before_content', 'metro_home_add_soliloquy_slider' ); | |
function metro_home_add_soliloquy_slider() { | |