Skip to content

Instantly share code, notes, and snippets.

@SmartWizardSolutions
Created December 17, 2014 22:29
Show Gist options
  • Save SmartWizardSolutions/c505686016939117f0fd to your computer and use it in GitHub Desktop.
Save SmartWizardSolutions/c505686016939117f0fd to your computer and use it in GitHub Desktop.
Display different content limit "Read More" links on WooCommerce archives than on other archives on the Genesis framework
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>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment