Okay
  Public Ticket #2816130
Scattered products on the e-shop
Closed

Comments

  • Trafogallery started the conversation

    Good day,

    I need your help. Product items are scattered on my e-shop. There are random gaps and it doesn't look good.

  •  675
    Neuron replied

    Hi,

    Can you please provide us with your wp-admin, we'll have a quick look to see what's going on.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  •   Trafogallery replied privately
  •  933
    Neuron replied

    Hi,

    I'm sorry for the late reply,

    I've installed a plugin called "Insert Headers and Footers" and added the following script to it, so can you please check it now?

    <script src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
    <script>
    jQuery(document).ready(function($) {
        $('.woocommerce .masonry').imagesLoaded( function() {
            setTimeout(() => {
                $('.woocommerce .masonry').isotope({
                    itemSelector: '.selector',
                    layoutMode: 'fitRows'
                })
            }, 1000);
        });
    });
    </script>

    Feel free to ask for anything you need.

    Kind Regards


  • Trafogallery replied

    Hi,

    Yes, it's much better, but is it possible that there is no free space at the bottom of the page?

    Thank You

  •  933
    Neuron replied

    Hi,

    I've added the following code at Dashboard > Appearance > Theme Editor to set the products per page to 15.

    // Change the Number of WooCommerce Products Displayed Per Page
    add_filter( 'loop_shop_per_page', 'lw_loop_shop_per_page', 30 );
    function lw_loop_shop_per_page( $products ) {
     $products = 15;
     return $products;
    }

    Feel free to ask for anything you need.

    Kind Regards


  • Trafogallery replied

    Hi,

    It's great now. 

    Thank You

  •  933
    Neuron replied

    You are welcome anytime, feel free to ask for anything you need

    If you like our theme, please leave us a rate of 5 stars at ThemeForest, that would help us a lot.

    Kind Regards,
    NeuronThemes