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
/** | |
* Disable Foobox script unless needed | |
* | |
* @link http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles | |
* @since 1.2 | |
*/ | |
add_action( 'wp_print_scripts', 'bhww_disable_foobox_script', 100 ); | |
function bhww_disable_foobox_script() { |
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
//At line 1518 I changed | |
new foobox(); | |
//to this: | |
$foobox = new foobox(); | |
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 Soliloquy Featured Content Slider post data to include URL entered as Slide custom post type Slide Link | |
* @since 1.0 | |
* | |
*/ | |
add_filter( 'tgmsp_fc_image_data', 'bhww_soliloquy_add_custom_link', 10, 4 ); | |
function bhww_soliloquy_add_custom_link( $data, $post, $id ) { | |
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
/** | |
* Create the 'Slides' custom post type | |
* @since 1.0 | |
* | |
*/ | |
add_action( 'init', 'bhww_register_slides_cpt' ); | |
function bhww_register_slides_cpt() { | |
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( 'genesis-custom-header', array( | |
'width' => 1140, | |
'height' => 120 | |
) ); */ |
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 the genesis_seo_site_title function to use an image for the logo instead of a background image | |
* | |
* The genesis_seo_site_title function is located in genesis/lib/structure/header.php | |
* @link http://blackhillswebworks.com/?p=4144 | |
* | |
*/ | |
add_filter( 'genesis_seo_title', 'bhww_filter_genesis_seo_site_title', 10, 2 ); |
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
#header { | |
background-position: top center !important; | |
background-color: #111; | |
/* min-height: 120px; */ | |
overflow: hidden; | |
width: 100%; | |
} | |
.header-image #title-area, | |
.header-image #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
/** | |
* Remove the site description | |
* | |
* @link http://www.briangardner.com/code/remove-header-elements/ | |
*/ | |
remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); |
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 span class to widget headlines | |
add_filter( 'widget_title', 'metro_widget_title' ); | |
function metro_widget_title( $title ){ | |
if( $title ) | |
return sprintf('<span class="widget-headline">%s</span>', $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
<div class="gist-container"> | |
https://gist.github.com/6146811 | |
</div> |