SHARE
TWEET

Child theme functions.php file for Jigoshop

a guest Jun 26th, 2012 84 Never
  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. ?>
RAW Paste Data
Top