Please refer to TemplateMonster Support for any issues surrounding TemplateMonster/TemplateTuning Themes – thanks, Jigoshop Team

Shop Sidebar theme issue

raylay's Avatar

raylay

05 Oct, 2011 06:15 AM

Hi all, Jigoshop is awesome but my programming skills aren't! I'm unable to figure out how to write the hook correctly to update the sidebar position. I need it to write:

Ref: http://polynesianunderground.com/about/

But all my attempts dump the sidebar into the content article as well as the footer area. Arghh!! Ref: http://polynesianunderground.com/shop/

Here is my hook:
function mytheme_open_jigoshop_content_wrappers()
{

echo '';

}

function mytheme_close_jigoshop_content_wrappers()
{

echo '';

}

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);
remove_action( 'jigoshop_sidebar', 'jigoshop_get_sidebar', 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( 'jigoshop_after_main_content', 'theme_page_widgets', 10 );

} add_action( 'wp_head', 'mytheme_prepare_jigoshop_wrappers' );

Any help is greatly appreciated!!

  1. 2 Posted by raylay on 05 Oct, 2011 06:18 AM

    raylay's Avatar

    Oh man, some of my text was stripped ---> after "I need it to write:"
    div id="container"
    div class="layout-width clearfix right-side"
    article id="content"
    /article aside id="sidebar"
    /aside /div /div

  2. Support Staff 3 Posted by Jeff on 05 Oct, 2011 03:03 PM

    Jeff's Avatar

    Paste your code for this into pastebin.com and post the link back here.

  3. 4 Posted by raylay on 06 Oct, 2011 03:50 AM

    raylay's Avatar

    Sorry about that - here is my hook and my sidebar function:
    http://pastebin.com/EeYntzsN

    Thank you!!!

  4. Support Staff 5 Posted by Jeff on 06 Oct, 2011 10:04 AM

    Jeff's Avatar

    You shouldn't need the inclusion of your sidebar wrapper in the Jigoshop wrappers. The way you have it will give it to you twice and you don't want that. So it looks like you only need:

    [div id="container"][div class="layout-width clearfix right-side"][article id="content"]

    If you are opening in that order then your closing order needs one less sidebar element)

    [/article][/div][/div]

    You remove the Jigoshop sidebar call and install your own and that should be ok. That should do it.

  5. 6 Posted by raylay on 06 Oct, 2011 04:16 PM

    raylay's Avatar

    Hi Jeff,
    Thank you, but unfortunately that isn't working for me. I've updated my functions.php so you can see the results here - http://polynesianunderground.com/shop/

    The sidebar is still showing up in the footer still and if I don't include the additional "theme_page_widgets" function it also loads a generic sidebar rather than the one I need. Any ideas?

    I know this is due to the theme I'm using, I just don't have enough know-how to fix it. I'm happy to pay for support if you guys can get me up and running.
    Thanks!

  6. Support Staff 7 Posted by Jeff on 06 Oct, 2011 04:59 PM

    Jeff's Avatar

    Yes, it seems you need your sidebar after the closing article, but before the rest of the closing div's.

    So, we can modify the closing wrappers to include your widget output and remove it's add_action.

    Maybe this will get it closer.

    http://pastebin.com/qYFhs7TN

  7. 8 Posted by raylay on 06 Oct, 2011 06:13 PM

    raylay's Avatar

    Hi Jeff! That worked perfectly, yay! Thanks so much - your support is really awesome!

    All I need help with now is getting the Featured Image to show in Add Products. I've mentioned some of this in my post to you at http://jigoshop.com/topic/would-the-following-items-be-covered-by-s....

    Featured image is showing up in my blog posts area but not in my Jigoshop products area. I have tried adding "add_theme_support( 'post-thumbnails' );" into my functions.php but this doesn’t work either.

    Any ideas? Or is there a way to add the Featured Image on the database end until this can be figured out. I just need an idea of what table to look at and I can probably figure out the rest (I hope!).

    Thank you!

  8. 9 Posted by Matt on 06 Oct, 2011 08:50 PM

    Matt's Avatar

    Do you mean you want one of your images to be the largest photo here?
    http://polynesianunderground.com/shop/185-2/

    Quite simple. When you're editing a product, click "Set Featured Image" , choose the "Gallery" tab, click "Show" for one of your images, and then click "Use as featured image"

    Or am I completely misunderstanding you?

    Cheers,
    Matt

  9. 10 Posted by raylay on 06 Oct, 2011 11:40 PM

    raylay's Avatar

    Hi Matt,
    That's my problem actually... I don't have a "Set Featured Image" button anywhere...Check out my screenshot here and let me know if I'm looking in the right place. Thanks!

    Screencap - http://raylay.com/screencap.jpg

  10. Support Staff 11 Posted by Jeff on 07 Oct, 2011 01:09 AM

    Jeff's Avatar

    Have you checked screen options in the top right corner to make sure 'Featured Image' is enabled.

    This is WITH the add_theme_support in your functions.php.

    If you have MU WordPress you will need NetWork Admin->Settings->Upload Images enabled.

    Still not working? Beyond that I'm not sure. That's usually all that is required.

  11. 12 Posted by raylay on 07 Oct, 2011 05:07 AM

    raylay's Avatar

    Hi guys,
    Screen options do not list "Featured Image" and I'm not using MU Wordpress. Are you able to take a look at my site if I pay for support? This is the last feature I need fixed in order to post the site. Please please help! Thank you!

  12. Support Staff 13 Posted by Jeff on 07 Oct, 2011 02:39 PM

    Jeff's Avatar

    Yes, and we can certainly take a look. Not sure I can guarantee anything though. You seem to have tried the standard fixes.

    I'm afraid that is going to have to be your call, but we will do what we can.

  13. 14 Posted by jdalen on 28 Feb, 2012 06:54 AM

    jdalen's Avatar

    I tried wrapping this theme with Jigoshop but missing something that is pushing sidebar outside: http://www.followingbodywisdom.com/shop/

    functions file:
    function mytheme_open_jigoshop_content_wrappers()
    {

    echo '<div class="CON"><div class="SC"><div class="head_bg"><div class="foot_bg">';
    

    }

    function mytheme_close_jigoshop_content_wrappers()
    {

    echo '</div></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' );

    I tried adding the divs for sidebar but this didn't fix the issue. Any ideas that could help?

    Thanks in advance,

    Jessica

  14. Support Staff 15 Posted by Jeff on 28 Feb, 2012 12:13 PM

    Jeff's Avatar

    Hi Jessica,

    I really can't pursue this as it's not a service we can provide. But I can maybe offer a quick sixty second look.

    Looking at page.php is good, but some theme's open body content in header.php and some of that may be needed as well.

    I might think that all you really need based on your 'About' page is

    id=bgcontainer
    class=CON
    class=SC

    open those 3 div's and close those 3.

    Hope it works for you ...

  15. 16 Posted by jdalen on 28 Feb, 2012 08:28 PM

    jdalen's Avatar

    Great, thanks for taking a quick look I'll try this out. Greatly
    appreciated!!!

    Jessica Dalen

    Owner/Designer
    Dalen Design <http://dalendesign.com>
    [email blocked] <***@***>
    613.421.2686

  16. 17 Posted by johnya on 13 May, 2012 02:02 PM

    johnya's Avatar

    Hi Jeff,
    I was wondering if you could also help me with the sidebar issue. I have wrap the theme and as a result all Cart, Checkout, Form have the sidebar on the right side. Only when Shop and Single Product pages have the sidebar at the bottom. My site is doradostonedist-dot-com/shop . I've read in WordPress forum and others it seems the sidebar problem is common for non-Jigowatt theme. Is there a fix for this or are we stuck and forced to pay premium?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.