This file contains hidden or 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_filter( 'get_the_content_more_link', 'sp_read_more_link2' ); | |
function sp_read_more_link2() { | |
if (is_woocommerce()) { | |
return '... <a class="more-link" href="' . get_permalink() . '">Customize ►</a>'; | |
} else { | |
return '... <a class="more-link" href="' . get_permalink() . '">Read More ►</a>'; | |
} | |
} |
This file contains hidden or 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( 'genesis_post_date_shortcode', 'child_post_date_shortcode', 10, 2 ); | |
/** | |
* Customize Post Date format and add extra markup for CSS targeting. | |
*/ | |
function child_post_date_shortcode( $output, $atts ) { | |
return sprintf( | |
'<span class="date time published" title="%4$s">%1$s<span class="day">%2$s</span> <span class="date">%3$s</span> <span class="month">%4$s</span></span>', |
This file contains hidden or 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 | |
//Moves titles above content and sidebar | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action( 'genesis_after_header', 'genesis_do_post_title', 20 ); | |
//this removes post titles from blog archive pages as well | |
//Add titles back to home page, single posts, categeory archives and one specific page | |
add_action('get_header', 'move_other_post_titles'); | |
function move_other_post_titles() { |