Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Czarzhan

    (@czarzhan)

    That’s what I meant by ‘update’. Sorry for the confusion. And thanks.

    Thread Starter Czarzhan

    (@czarzhan)

    Andrew, there is no Edit option anywhere near my post’s gravatar, or anywhere on the post that I can see.(EDIT: Oh, there it is)

    Stephen, voyage_grid_class() didn’t work for me, only voyage_grid_full(). voyage_grid_class() didn’t even address the left border issue when I tried it after a successful test. But I will try it when you update. Thanks again for your help.

    Thread Starter Czarzhan

    (@czarzhan)

    Oh, for pogies sake!

    The other code that you gave me earlier in the thread moved the products away from hugging the left edge like they were before. The CSS fix works with the voyage_grid_full() function, but not voyage_grid_class().

    So to recap, here is the code to put in functions.php:

    function mytheme_open_jigoshop_content_wrappers()
    {
    echo '<div class="' . voyage_container_class() . '"><div id="content" class="' . voyage_grid_full() .'" role="main">';
    }
    
    function mytheme_close_jigoshop_content_wrappers()
    {
    echo get_sidebar() . '</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' );

    …And add this to the custom CSS:

    .jigoshop #sidebar_one { float: right;}
    
    .jigoshop div.clear {
    clear: none;
    }
    Thread Starter Czarzhan

    (@czarzhan)

    The CSS did it! Thank you SOOOO much!

    Thread Starter Czarzhan

    (@czarzhan)

    Nope. It just made the sidebar stretch underneath again. On the up side, the products are no longer riding the left edge.

    Any other ideas? 🙂

    Thread Starter Czarzhan

    (@czarzhan)

    By the way, this is the page with the issue.

    Thread Starter Czarzhan

    (@czarzhan)

    Ah! Of course! I was being silly. My brain just hadn’t twigged to it.

    I tried different positions for get_sidebar() in the closing function, before, between, and after the two </div> tags. The sidebar is still beneath the products, but it no longer stretches all the way across.

    Thanks for your help. I’ll head over to JigoShop support and see if they can do anything. If they come up with a solution, I will post it back here.

    Thread Starter Czarzhan

    (@czarzhan)

    It didn’t work, although I’m not certain I am doing it right. I copied the code from the JigoShop intructions and substituted your code above into the functions. I the pasted it all into the Voyage theme’s function.php file near the end. This is the code I added:

    function mytheme_open_jigoshop_content_wrappers()
    {
        echo '<div class="<?php echo voyage_container_class(); ?>">   <div id="content" class="<?php echo voyage_grid_class(); ?>" role="main">';
    }
    
    function mytheme_close_jigoshop_content_wrappers()
    {
        echo '</div><?php get_sidebar(); ?></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' );

Viewing 8 replies - 1 through 8 (of 8 total)