Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15941

    Hi,

    when the product search result are empty, the sidebar is moved and the layout is broken. This happens also when I open a category with no products. Custom CSS is empty, using newest abundance version.

    http://www.glamisch.sk/?s=bla+bla&post_type=product

    #89561

    Hi glamisch,

    I’m not getting the same thing on my test copy or on the demo version here: http://www.kriesi.at/themes/abundance?s=nothing&post_type=product

    I suspect a plugin is interfering with the theme/woocommerce and causing a conflict with either the css or javascript. Try disabling all other active plugins besides WooCommerce and trying it again. Then re-enable each one to find the conflict.

    Regards,

    Devin

    #89562

    I disabled all plugins, no success. I did open pages from more members here and they have the same problem. for example http://portofoontoebehoren.nl/?s=fdgdfg&post_type=product

    #89563

    I found the problem. It looks like it is a woocommerce problem.

    In wp-content/plugins/woocommerce/templates/archive-product.php there is an else loop like this:

    <?php else : ?>

    <?php if ( ! woocommerce_product_subcategories( array( ‘before’ => ‘<ul class=”products”>’, ‘after’ => ” ) ) ) : ?>

    <p><?php _e( ‘No products found which match your selection.’, ‘woocommerce’ ); ?></p>

    <?php endif; ?>

    <?php endif; ?>

    I changed it to this:

    <?php else : ?>

    <?php do_action(‘woocommerce_before_shop_loop’); ?>

    <?php if ( ! woocommerce_product_subcategories( array( ‘before’ => ‘<ul class=”products”>’, ‘after’ => ” ) ) ) : ?>

    <p><?php _e( ‘No products found which match your selection.’, ‘woocommerce’ ); ?></p>

    <?php endif; ?>

    <?php do_action(‘woocommerce_after_shop_loop’); ?>

    <?php endif; ?>

    Hope it will help…

    #89564

    Glad you found the problem! Let us know if you have any more questions.

    Regards,

    Mya

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Sidebar moved up when no products found’ is closed to new replies.