Thesis: remove byline from page


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



Copy this code and paste it in your HTML
  1. /*--------------------------------------------------*/
  2. /* remove byline from page */
  3. /*--------------------------------------------------*/
  4.  
  5.  
  6. function custom_body_class($classes) {
  7. if (is_page()) {
  8. $classes[] .= 'hide_meta';
  9. }
  10. return $classes;
  11. }
  12. add_filter('thesis_body_classes', 'custom_body_class');
  13.  
  14.  
  15. /*--------------------------------------------------*/
  16. /* add to custom css */
  17. /*--------------------------------------------------*/
  18.  
  19. .hide_meta .byline {
  20. display:none;
  21. }
  22.  
  23. .hide_meta .headline_area {
  24. margin-bottom: 4em;
  25. }
  26.  
  27. /* in a default thesis installation use .headline_meta instead of .byline */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.