WordPress.org

Forums

iframe
[resolved] Anyone Successfully Wrap Their Custom Theme for Jigoshop? (7 posts)

  1. skipper0802
    Member
    Posted 3 years ago #

    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/

  2. skipper0802
    Member
    Posted 3 years ago #

    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

  3. skipper0802
    Member
    Posted 3 years ago #

  4. jnhghy
    Member
    Posted 3 years ago #

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

  5. skipper0802
    Member
    Posted 3 years ago #

    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?

  6. jnhghy
    Member
    Posted 3 years ago #

    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

  7. skipper0802
    Member
    Posted 3 years ago #

    My short-term solution is annotated above.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • iframe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic