Created
December 17, 2014 22:29
-
-
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
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>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment