WordPress.org

Ready to get started?Download WordPress

Forums

Jigoshop Plugin Wrapping into Creativix Theme (5 posts)

  1. skipper0802
    Member
    Posted 2 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(); ?> present. Examination of a portion 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.
    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 & Barb

  2. skipper0802
    Member
    Posted 2 years ago #

    ...using Jigoshop 1.2.3
    ...sent same information to theme and plugin authors.

  3. skipper0802
    Member
    Posted 2 years ago #

    ..."Disable Jigoshop frontend CSS" currently set to "no" in settings.

  4. skipper0802
    Member
    Posted 2 years ago #

  5. skipper0802
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic