• Resolved Kizzie86

    (@kizzie86)


    I have absolutely zero experience in programmer information etc BUT I have just done a ton of research and it fixed my issue so I’m sharing it for others…

    When installing JigoShop first time (today) it threw out my whole layout
    Sidebars went down below and all over the place – I have seen all the tutorials and to me they dont make any sense as I’m not a programmers – but I did see this… woocommerce and jigoshop are very similar in their fixes..

    Jigo Shop suggested this
    https://forum.jigoshop.com/kb/customize-jigoshop/wrap-your-themes-content-for-jigoshop

    Woocommerce suggested this
    https://wcdocs.woothemes.com/codex/third-party-custom-theme-compatibility/

    They are both ALMOST the same apart from the obvious name change

    The only issue I found was the last two ‘functions’ were calling back differently (please excuse my explaining as I dont know programming talk)

    the add.action were both different

    Woocommerce

    add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
    add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);

    Jigoshop

    add_action( 'jigoshop_before_main_content', 'mytheme_open_jigoshop_content_wrappers', 10 );
        add_action( 'jigoshop_after_main_content', 'mytheme_close_jigoshop_content_wrappers', 10 );

    SO STEP 1….

    Go to your page.php (in your theme)to find out what is called after
    <?php get_header()?>
    and before
    <?php if (have_posts()

    as you can see below mine is <section id=”main-content”>

    yours could be a div or div class… etc

    <?php get_header()?>
    
    		<!-- Begin Main Content ( left col ) -->
    		<section id="main-content">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    				<!-- Begin Article -->

    Once you have that you need to go to your functions.php (in your theme)

    and scroll right down to the end before the ‘?>’ tag
    and paste the following code (notice the changes from the above code?

    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', 'my_theme_wrapper_start', 10);
    add_action( 'jigoshop_after_main_content', 'my_theme_wrapper_end', 10);

    Then click enter…

    Then copy and paste the following

    function my_theme_wrapper_start() {
      echo '<section id="main-content">';
    }
    
    function my_theme_wrapper_end() {
      echo '</section>';

    Change the info after the echo echo ‘<‘PUT YOURS HERE from Page.php’>

    then echo'</end yours here>’

    Hope that helps – its fixed my layout – and developers if there is something wrong with this could you please let me know ??? I would appreciate it heaps!! ??

    https://www.ads-software.com/extend/plugins/jigoshop/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Jigoshop] Sidebars giving you an issue on personalised theme?’ is closed to new replies.