Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sripujastore

    (@sripujastore)

    for example if I want to show 4 or 5 categories then change the code here

    if ( ! function_exists( 'storefront_product_categories' ) ) {
    	/**
    	 * Display Product Categories
    	 * Hooked into the <code>homepage</code> action in the homepage template
    	 *
    	 * @since  1.0.0
    	 * @param array $args the product section args.
    	 * @return void
    	 */
    	function storefront_product_categories( $args ) {
    		$args = apply_filters(
    			'storefront_product_categories_args',
    			array(
    				'limit'            => 3,
    				'columns'          => 3,
    				'child_categories' => 0,
    				'orderby'          => 'menu_order',
    				'title'            => __( 'Shop by Category', 'storefront' ),
    			)
    		);
    • This reply was modified 5 years, 2 months ago by sripujastore.
    Thread Starter sripujastore

    (@sripujastore)

    Thanks this worked.! I have related questions. If I have to modify the storefront theme like modify homepage to show only desired categories (not dynamically like it is now) and nothing else. How should I go about it.? Can you please point me to the guide? Thanks

    Thread Starter sripujastore

    (@sripujastore)

    Thanks for your response. As you can see the header is too wide causing the page to scroll. I updated the image with a note. https://d.pr/free/i/D05jGP

    Thanks

    • This reply was modified 5 years, 2 months ago by sripujastore.
Viewing 3 replies - 1 through 3 (of 3 total)