WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: [iframe]] Anyone Successfully Wrap Their Custom Theme for Jigoshop?

[Resolved] [Plugin: [iframe]] Anyone Successfully Wrap Their Custom Theme for Jigoshop?

  • We’re thinking of using Jigoshop for our website cart functionality as it is capable of all the features we’re looking for. However, as could be expected, Jigoshop carries its own CSS. We’ve read most of the threads concerning wrapping Jigoshop using hooks, but want to be certain before committing. Has anyone wrapped Jigoshop using a theme other than twenty-ten or twenty-eleven?

    The threads say to examine a particular .php file with <?php get_header(); ?> resident. Examination of our page.php file gives us this:

    <?php get_header(); ?>
    
    <div id="sub-column">
    
            <div id="sub-top">
                    <?php get_template_part('scripts/breadcrumb'); ?>
            </div>
    
            <div id="sub-content">
    
                    <div class="content">

    Is this the correct file to determine the divs to wrap with ? That is to say, do we need to hook Jigoshop with the “sub-column,” “sub-top,” and “sub-content” IDs. Instead of the Jigoshop’s integral divs?

    Has anyone else done this with the Creativix theme? Let us know if we’re on the right track.

    Regards,
    Eric & Barb

    http://wordpress.org/extend/plugins/iframe/

Viewing 6 replies - 1 through 6 (of 6 total)
  • So, accordingly, I should create a new “functions.php” file for my child theme directory with the following content:

    function mytheme_open_jigoshop_content_wrappers()
    {
        echo '<div class="sub-column"><div id="sub-top"><div id="sub-content>';
    }
    
    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' );

    Is this correct based on the page.php file above and the information given in the help threads?

    Thanks,
    Eric

    Hi,
    I’ve tested jingoshop with suffusion and suffusion commerce pack plugin and it worked without issues
    Regards

    Hi Jnhghy,
    Was your wrapping construct similar to ours? In other words, did you wrap the intrinsic Jigoshop div IDs with your themes div IDs?

    hmmm … I see now where you’re going… and I didn’t got that far … but in my opinion it’s worth trying it out … and let everyone know if it’s working …:)
    Regards

    My short-term solution is annotated above.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: [iframe]] Anyone Successfully Wrap Their Custom Theme for Jigoshop?’ is closed to new replies.