Advertisement
Guest User

Untitled

a guest
Oct 16th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. function blackandwhite_excerpt_length( $length ) {
  2.    
  3.     $excerpt = get_theme_mod('exc_length', '60');
  4.     return $excerpt;
  5.  
  6. }
  7.  
  8. add_filter( 'excerpt_length', 'blackandwhite_excerpt_length', 999 );
  9.  
  10. function wpc_custom_excerpt($excerpt) {
  11.     $excerpt = str_replace( "<p", "<p class=\"lead\"", $excerpt );
  12.     return $excerpt;
  13. }
  14. add_filter('the_excerpt',  'wpc_custom_excerpt');
  15.  
  16. add_theme_support( 'post-thumbnails' );
  17.  
  18. function extrait_la_suite($more) {
  19. global $post;
  20. return &#039; <a href="'. get_permalink() . '" rel="nofollow">' . __( 'Lire la suite...', 'textdomain' ) . '</a>';
  21. }
  22. add_filter('excerpt_more', 'extrait_la_suite');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement