Changing Excerpt Read More link
-
Hello,
I am using your plugin with great success on a multisite install (main site = eng, sub-site = french). I have created a custom child theme based on genesis framework.
I have changed the “read more” for excerpts and while it works in english, I cannot get it to display in french. Here is my code. Any advice would be welcome. Thanks!
//* Changing excerpt more - display where "read more tag" is used. add_filter('excerpt_more', 'auto_excerpt_more'); function auto_excerpt_more($more) { if ( 'fr_FR' == $language ) { return '… <a href="'.get_permalink().'" rel="nofollow">Lire</a>'; } else { return '… <a href="'.get_permalink().'" rel="nofollow">Read</a>'; } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Changing Excerpt Read More link’ is closed to new replies.