Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement