Advertisement
srikat

Untitled

Jan 1st, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1. add_action( 'genesis_entry_content', 'sk_opening_image_wrap', 7 );
  2. add_action( 'genesis_entry_content', 'sk_closing_image_wrap', 9 );
  3.  
  4. function sk_opening_image_wrap() {
  5.     if ( ! ( is_home() || is_archive() || is_search() ) ) {
  6.         return;
  7.     }
  8.     echo '<div class="one-third first">';
  9. }
  10.  
  11. function sk_closing_image_wrap() {
  12.     if ( ! ( is_home() || is_archive() || is_search() ) ) {
  13.         return;
  14.     }
  15.     echo '</div>';
  16. }
  17.  
  18. add_action( 'genesis_entry_content', 'sk_post_content_opening', 9 );
  19. add_action( 'genesis_entry_content', 'sk_post_content_closing', 11 );
  20.  
  21. function sk_post_content_opening() {
  22.     if ( ! ( is_home() || is_archive() || is_search() ) ) {
  23.         return;
  24.     }
  25.     echo '<div class="two-thirds">';
  26. }
  27.  
  28. function sk_post_content_closing() {
  29.     if ( ! ( is_home() || is_archive() || is_search() ) ) {
  30.         return;
  31.     }
  32.     echo '</div>';
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement