[Support request] How to remove /page/2/ from home page?

Home Forums Support [Support request] How to remove /page/2/ from home page?

Home Forums Support How to remove /page/2/ from home page?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1010196
    Gregory

    Hello,

    I’m using the seller theme with woocommerce. I would like to remove the page numbers (bottom of the page) from home page.
    I checked woocommerce options… but I don’t see how to remove it.
    Home page is already a static page, I didn’t modify anything the original theme.

    Thank you

    #1010247
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I fully understand.

    How will people see the second page of products without the paging navigation?

    Let me know ๐Ÿ™‚

    #1010416
    Gregory

    1 ) I just want to show like 8 products on the homepage without seeing page numbering.

    View post on imgur.com

    #1010510
    David
    Staff
    Customer Support

    Hi there,

    your Home Page is currently only showing 8 products ( the dummy products that were imported with the Site ).

    What you are showing there is the Shop (Product Archive) which is automatically generated to display ALL your products, if you remove that then how will ( as Leo said ) people find the other products?

    #1010765
    Gregory

    Code goes in function.php file. It will show only featured products, it’s what I wanted ๐Ÿ™‚

    // Display featured products in shop pages
    add_filter( 'woocommerce_product_query_tax_query', 'custom_product_query_tax_query', 10, 2 );
    function custom_product_query_tax_query( $tax_query, $query ) {
        if( is_admin() ) return $tax_query;
    
        if ( is_shop() ) {
            $tax_query[] = array(
                'taxonomy' => 'product_visibility',
                'field'    => 'name',
                'terms'    => 'featured'
            );
        }
    
        return $tax_query;
    }
    #1010768
    David
    Staff
    Customer Support

    Glad to hear you got it working

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.