• Hello,

    I am having some problem with this theme regarding left sidebar when using Woocommerce.

    At first my left sidebar was always on the bottom, then i modified function.php with this code:

    remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
    remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
    
    add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
    add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);
    
    function my_theme_wrapper_start() {
      echo '<div id="primary">';
    }
    
    function my_theme_wrapper_end() {
      echo '</div>';
    }

    and now on some products left sidebar is on the left and on some products it is still at the bottom. From my point of view problem is with main product “primary” width. If title of product is long it will push sidebar to the bottom. Or if there are more than 3 products in category.

    For example:


    sidebar at left

    sidebar at bottom

    I would appreciate help with this problem, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zikihos

    (@zikihos)

    any suggestions?

    now I have sidebar on left but categories are on the right not in the center. But when I open product in category then sidebar is at the bottom.

    please advice!

    thank you!

    I’m also having this issue. I’ve tried changing the layout-sidebar alignment but no luck. Products are appearing at the top, sidebar below them.

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

The topic ‘Woocommerc – left sidebar problem’ is closed to new replies.