Thesis: change teaser and post byline


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /*--------------------------------------------------*/
  2. /* change teaser & post byline */
  3. /*--------------------------------------------------*/
  4.  
  5.  
  6. /* --- switch of bylines in thesis! ---*/
  7.  
  8. function custom_byline_teaser() {
  9. ?>
  10. <div class="byline">von <?php the_author_posts_link(); ?> am <?php echo get_the_time(get_option('date_format')); ?> <?php edit_post_link(__('edit', 'thesis'), '<span class="edit_post">[', ']</span>'); ?> </div>
  11. <?php
  12. }
  13. add_action('thesis_hook_before_post', 'custom_byline_teaser');
  14. add_action('thesis_hook_before_teaser', 'custom_byline_teaser');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.