Skip to content

Instantly share code, notes, and snippets.

@wendycholbi
wendycholbi / ssk_custom_header_style
Last active December 21, 2015 08:18
Prose theme ONLY: Fix for an issue with Genesis 2.0 where custom header CSS is overridden, resulting in a misaligned header. This function replaces the genesis_custom_header_style function with your own. Set your custom header CSS in line 35, then add this function to functions.php or to a plugin. If you are not using the Prose theme, a slightly…
/*———- SSK - CUSTOMIZE HEADER OUTPUT ————— */
remove_action( 'wp_head', 'genesis_custom_header_style' );
add_action( 'wp_head', 'ssk_custom_header_style' );
function ssk_custom_header_style() {
//* Do nothing if custom header not supported
if ( ! current_theme_supports( 'custom-header' ) )
return;
@wendycholbi
wendycholbi / mh_custom_header_style
Last active December 21, 2015 08:18
Fix for an issue with Genesis 2.0 where custom header CSS is overridden, resulting in a misaligned header. This function replaces the genesis_custom_header_style function with your own. Set your custom header CSS in line 35, then add this function to functions.php or to a plugin. This code was written by Genesis Community Forum member CyBorge, a…
/*———- MDB - CUSTOMIZE HEADER OUTPUT ————— */
remove_action( 'wp_head', 'genesis_custom_header_style' );
add_action( 'wp_head', 'mh_custom_header_style' );
function mh_custom_header_style() {
//* Do nothing if custom header not supported
if ( ! current_theme_supports( 'custom-header' ) )
return;
@wendycholbi
wendycholbi / wc-modify-wp-readmore
Last active December 16, 2015 06:39
Replacing the "Read more..." link with an image on a WordPress site using the Genesis Framework. Paste this code block into Genesis --> Custom Code --> Custom Functions if using the Prose theme, or paste it into the child theme's functions.php file for all other child themes.
/** Modify the WordPress read more link */
add_filter( 'the_content_more_link', 'custom_read_more_link' );
function custom_read_more_link() {
return '<br /><a class="more-link" href="' . get_permalink() . '"><img class="alignright" src="http://parentjob.com/wp-content/uploads/2013/04/read-more.png" alt="read more" title="Read more..." /></a>';
}