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 copy php tag | |
// replace commas in description with line breaks | |
$blogdesc = get_bloginfo('description'); | |
$blogdesc = preg_replace("/, */", "<br> ", $blogdesc); | |
echo $blogdesc; | |
?> |
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 copy php tag | |
// genesis replace default description with description containing line breaks | |
remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); | |
add_action( 'genesis_site_description', 'child_seo_site_description'); | |
function child_seo_site_description() { | |
$blogdesc = get_bloginfo('description'); | |
$blogdesc = preg_replace("/, */", "<br>", $blogdesc); ?> | |
<p id="description"><?php echo $blogdesc; ?></p> |
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 include above php tag | |
//* Remove edit link on Genesis posts | |
add_filter( 'genesis_edit_post_link' , '__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 | |
// do not copy/include php tag | |
// clear header floats | |
function clear_header_floats() { ?> | |
<div class="clear"></div> | |
<?php } | |
add_action('genesis_after_header', 'clear_header_floats'); |
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 copy php tag | |
//* Slug as body class | |
function body_class_slug( $classes ) { | |
global $post; | |
if ( isset( $post ) ) { | |
$classes[] = $post->post_name; | |
} | |
return $classes; |
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 copy php tag above | |
//* add following code to functions.php: | |
//* Load backstretch js | |
/** Add metabox for backstretch default/fallback background image */ | |
add_action( 'genesis_theme_settings_metaboxes', 'themename_theme_settings_metaboxes', 10, 1 ); | |
function themename_theme_settings_metaboxes( $pagehook ) { |
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 | |
echo do_shortcode("[shortcode]"); | |
?> |
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 copy php tag | |
/* Inspired by: | |
http://www.wpstuffs.com/add-menu-description-in-genesis/ | |
http://www.billerickson.net/genesis-quick-tips/ | |
*/ | |
//* Display nav descriptions (div after text within anchor - <a href>"Menu Name"<div>"Description"</div></a>) | |
function add_description_nav( $item_output, $item ) { |
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 copy php tag | |
// inspired by: | |
// http://www.geoffreyrickaby.com/web-development/create-a-custom-header-in-genesis | |
//* Custom header | |
remove_action('genesis_header', 'genesis_do_header'); | |
remove_action('genesis_header', 'genesis_header_markup_open', 5); | |
remove_action('genesis_header', 'genesis_header_markup_close', 15); |
OlderNewer