Want more features on Pastebin? Sign Up, it's FREE!
Guest

Child theme functions.php file for Jigoshop

By: a guest on Jun 26th, 2012  |  syntax: PHP  |  size: 0.80 KB  |  views: 74  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.     /*this file runs after parent theme file in order to wrap the Jigoshop cart*/
  3.  
  4. function mytheme_open_jigoshop_content_wrappers()
  5. {
  6.     echo '<div class="content"><div class="sidebar"><div class="footer">';
  7. }
  8.  
  9. function mytheme_close_jigoshop_content_wrappers()
  10. {
  11.     echo '</div></div></div>';
  12. }
  13.  
  14. function mytheme_prepare_jigoshop_wrappers()
  15. {
  16.     remove_action( 'jigoshop_before_main_content', 'jigoshop_output_content_wrapper', 10 );
  17.     remove_action( 'jigoshop_after_main_content', 'jigoshop_output_content_wrapper_end', 10);
  18.  
  19.     add_action( 'jigoshop_before_main_content', 'mytheme_open_jigoshop_content_wrappers', 10 );
  20.     add_action( 'jigoshop_after_main_content', 'mytheme_close_jigoshop_content_wrappers', 10 );
  21. }
  22. add_action( 'wp_head', 'mytheme_prepare_jigoshop_wrappers' );
  23.  
  24. ?>
clone this paste RAW Paste Data