Advertisement
Guest User

Waipoua Podlove Episode Fix header.php

a guest
Mar 8th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. </head>
  2.  
  3.  
  4. <?php
  5. # Waipoua and Podlove - Theme Fix for Episodes Responsive Design
  6.  
  7. # Get <body> classs
  8. $body_class = get_body_class();
  9.  
  10. # If $body_class[1] = "single-podcast" => convert to "single-post" and print array values
  11. if($body_class[1] == "single-podcast") {
  12. $body_class[1] = "single-post";
  13.  
  14. echo "<body class=\"";
  15.  
  16. foreach($body_class as $body_class_value)
  17. echo $body_class_value." ";
  18.  
  19. echo "\" >";
  20.  
  21. }
  22. else {
  23. ?>
  24. <body <?php body_class(); ?>>
  25. <?php
  26. }
  27.  
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement