Posted By

psteinweber on 05/15/11


Tagged

wordpress text comment custom thesis


Versions (?)

Thesis: custom comment text


 / Published in: PHP
 

  1. /*--------------------------------------------------*/
  2. /* custom comment text */
  3. /*--------------------------------------------------*/
  4.  
  5. function my_comments_link() {
  6. if (!is_single() && !is_page()) {
  7. echo '<p class="to_comments"><span class="bracket">{</span> <a href="';
  8. the_permalink();
  9. echo '#comments" rel="nofollow">';
  10. comments_number(__('<span>Diskussion starten</span>', 'thesis'), __('<span>ein Kommentar, jetzt mitdiskutieren</span>', 'thesis'), __('<span>%</span> Kommentare, jetzt mitdiskutieren', 'thesis'));
  11. echo '</a> <span class="bracket">}</span></p>';
  12. }
  13. }
  14.  
  15. remove_action('thesis_hook_after_post', 'thesis_comments_link');
  16. add_action('thesis_hook_after_post', 'my_comments_link');

Report this snippet  

You need to login to post a comment.