
Child theme functions.php file for Jigoshop
By: a guest on
Jun 26th, 2012 | syntax:
PHP | size: 0.80 KB | hits: 50 | expires: Never
<?php
/*this file runs after parent theme file in order to wrap the Jigoshop cart*/
function mytheme_open_jigoshop_content_wrappers()
{
echo '<div class="content"><div class="sidebar"><div class="footer">';
}
function mytheme_close_jigoshop_content_wrappers()
{
echo '</div></div></div>';
}
function mytheme_prepare_jigoshop_wrappers()
{
remove_action( 'jigoshop_before_main_content', 'jigoshop_output_content_wrapper', 10 );
remove_action( 'jigoshop_after_main_content', 'jigoshop_output_content_wrapper_end', 10);
add_action( 'jigoshop_before_main_content', 'mytheme_open_jigoshop_content_wrappers', 10 );
add_action( 'jigoshop_after_main_content', 'mytheme_close_jigoshop_content_wrappers', 10 );
}
add_action( 'wp_head', 'mytheme_prepare_jigoshop_wrappers' );
?>