Last active
February 18, 2017 14:19
-
-
Save nielslange/9f6fc686b52d0bf60c4a78f8acf828df to your computer and use it in GitHub Desktop.
Trim length of featured post title
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 | |
//* Trim length of featured post title | |
add_filter( 'genesis_featured_post_title', 'smntcs_genesis_featured_post_title' ); | |
function smntcs_genesis_featured_post_title( $title ) { | |
return mb_strimwidth($title, 0, 65, '...'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment