Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Add code here that needs to run before the parents functions.php */
- /*
- * Tell WordPress to run post_theme_setup() when the 'after_setup_theme' hook is run.
- */
- add_action( 'after_setup_theme', 'post_theme_setup' );
- if ( !function_exists( 'post_theme_setup' ) ):
- function post_theme_setup() {
- /* place for code to execute after parents functions.php */
- /* the purpose of these code lines is to wrap the cart app in the Creativix theme */
- function mytheme_open_jigoshop_content_wrappers()
- {
- echo '<div class="sub-column"><div class="sub-top"><div class="sub-content"><div class="content">';
- }
- function mytheme_close_jigoshop_content_wrappers()
- {
- echo '</div></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' );
- }
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement