Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dodjob

    (@dodjob)

    bump ??

    Hi dodjob, this is pretty much the same thing @nikeo does for woocommerce integration:

    //jigo
    function mytheme_open_jigoshop_content_wrappers(){
        // we do this here because I'm lazy
        /* remove tc comments*/
        add_filter( 'tc_show_comments', 'tc_jigoshop_disable_comments' );
        function tc_jigoshop_disable_comments(){
            return false;
        }
        /* remove tc post navigation */
        add_filter( 'tc_show_post_navigation', 'tc_jigoshop_disable_post_navigation');
        function tc_jigoshop_disable_post_navigation(){
            return false;
        }
    ?>
        <div id="main-wrapper" class="<?php echo tc__f( 'tc_main_wrapper_classes' , 'container' ) ?>">
            <?php do_action( '__before_main_container' ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)...and whatever you need! ?>
                <div class="container" role="main">
                     <div class="<?php echo tc__f( 'tc_column_content_wrapper_classes' , 'row column-content-wrapper' ) ?>">
    
                          <?php do_action( '__before_article_container'); ##hook of left sidebar?>
    
                              <div id="content" class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
    
                                  <?php do_action ('__before_loop');##hooks the header of the list of post : archive, search... ?>
    <?php
    }
    
    function mytheme_close_jigoshop_content_wrappers()
    {
    ?>
                                  <?php do_action ('__after_loop');##hook of the comments and the posts navigation with priorities 10 and 20 ?>
    
                              </div><!--.article-container -->
    
                          <?php do_action( '__after_article_container'); ##hook of left sidebar?>
    
                      </div><!--.row -->
                  </div><!-- .container role: main -->
    
              <?php do_action( '__after_main_container' ); ?>
    
          </div><!--#main-wrapper"-->
    <?php
    }
    
    function mytheme_prepare_jigoshop_wrappers()
    {
    
        /* use customizr sidebars */
        remove_action('jigoshop_sidebar', 'jigoshop_get_sidebar', 10);
        /* use customizr breadcrumb */
        remove_action('jigoshop_before_main_content', 'jigoshop_breadcrumb', 20);
    
        /* unhooks the default jigoshop wrappers and add customizr's content warpper and action hooks*/
        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' );

    You have to put this code in your child-theme functions.php .
    Hope this helps.

    Thread Starter dodjob

    (@dodjob)

    Yessssssssss :))) Ah ah I’m REAALLY Thanksful for that!
    Have a nice day!
    ??
    Gru?,
    H.

    Thread Starter dodjob

    (@dodjob)

    :] [solved] :]

    You’re welcome ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘jigoshop wrap / integration’ is closed to new replies.