storefront customization

How to Customize WooThemes Storefront Homepage Layout

Customize Storefront Theme without touching any code

Why not spend less time on designing WooCommerce stores?
Download FREE

Storefront is a free theme (with 100,000+ active install), developed & designed by WooCommerce Core Developers. I’ve put together a list of snippets so that you can quickly and easily customize your Storefront Homepage.

Storefront Homepage

The Storefront theme’s Homepage has 6 sections:

  1. Page Content
  2. Product Categories section
  3. Featured Products section
  4. Recent Products section
  5. Top Rated Products section
  6. On Sale Products section
  7. Best Selling Products section

How To Setup Storefront Homepage

To display Homepage sections on your homepage, you have to assign the Homepage template to your page.

storefront homepage template

Follow these steps to display storefront sections on your homepage:

  1. Go to Dashboard -> Pages and create a page title homepage
  2. On the right hand side, you will find a box titled “Page Attributes
  3. Select “Homepage” from “Template” drop-down.
  4. Click on Update to save the change.

 

Add / Re-order / Remove Homepage Sections

How To Re-order Storefront Homepage Sections

You can easily re-order your Storefront homepage sections using WooThemes Homepage Control plugin. Follow below steps to re-order your homepage sections:

  1. Download & Install Homepage Control
  2. Go to Appearance -> Customize -> Homepage Control
  3. Drag & re-order the sections according to your need.
  4. Click on Save & Publish to save the changes.

How To Remove Sections from Storefront Homepage

You can remove or hide the any sections (e.g.: Product category, Recent, Best-selling) from your homepage using Homepage Control plugin.

Follow these steps to remove homepage sections:

  1. Download & Install Homepage Control
  2. Go to Appearance -> Customize -> Homepage Control
  3. Un-check the box beside the sections you do want to display.
  4. Click on Save & Publish.

How To Add A Full Width Slider To Storefront Homepage

You can add any slider to your storefront homepage using Storefront Add Slider plugin. Follow these steps:

  1. Download & install Storefront Add Slider
  2. Go to Appearance -> Customize -> Static Front Page
  3. Paste your slider shortcode in Slider Shortcode field
  4. Click on Save & Publish

Set Background Color / Image

Adding Background Image To Storefront Homepage Sections

By default, Storefront homepage has 6 sections. You can display product categories, Recent products, Featured products, popular products, On Sale products and Best Selling products.
If we want to add a background image to those sections, we have to identify the class of each sections. Here is the class of each sections.
.storefront-product-categories{}
.storefront-recent-products{}
.storefront-featured-products{}
.storefront-popular-products{}
.storefront-on-sale-products{}
.storefront-best-selling-products{}

Now let’s set a background image to Storefront Homepage featured products section. Insert the below css in Appearance -> Customize -> Additional CSS

Adding Background Color To Storefront Homepage Sections

Customize Storefront Homepage Section Title

How to Remove or hide the Homepage Section Title

If you want to get rid of the section title (Shop by Category,” “New In,” or “Best Sellers”) from your homepage, insert this in Additional CSS

How To Change the Homepage Section Title

If you want to change the section title (Shop by Category,” “New In,” or “Best Sellers”) to something else, you have to do this via hooks.

Here is a list of all storefront homepage section filters:
storefront_product_categories_args
storefront_recent_products_args
storefront_featured_products_args
storefront_popular_products_args
storefront_on_sale_products_args
storefront_best_selling_products_args
Insert this in your themes functions.php to change the featured product section title:

Customize Number of Products / Column

How To Increase Homepage Section Product Per Page

How To Increase Homepage Section Product Column Grid / Column

 

Customizing Storefront Product categories

How To Display More Categories on Homepage

Other Customization

How To Add a Description Below Homepage Section Title

5. Top Rated Products

How To Remove Top Rated Products Section from Storefront Homepage

There are two ways you can remove the Top Rated Products section from your Homepage template. One is installing Homepage Control plugin and the other is removing using the hooks. Lets see how we can remove the Top Rated Products section using Hooks. Place this in your themes functions.php

How To Change Background Color of Top Rated Products

If you want to change the background color of Top Rated or Popular Products section, then insert this in Appearance > Customize > Additional CSS.

How To Remove Top Rated Products Section Title

Insert this in Appearance > Customize > Additional CSS to remove or hide the On Sale Products section title.

How To Change Top Rated Products Section Title

If you want to change the section title from “On Sale” to anything else, just insert this snippet at the bottom of your child theme functions.php

How To Display More Products on  Top Rated Section

By default Storefront Top Rated Products section displays 4 products. Lets increase it to 12 products.

How To Add a Text Below Top Rated Products Section

This code snippet will let you add text or HTML depending on your need below the Top Rated Products section title. Just place PHP this snippet at the bottom of your child theme functions.php file before “?>”

6. On Sale Products

How To Remove On Sale Products Section from Storefront Homepage

There are two ways you can remove the On Sale Products section from your Homepage template. One is installing Homepage Control plugin and the other is removing using the hooks. Lets see how we can remove the On Sale Products section using Hooks. Place this in your themes functions.php

How To Change Background Color of On Sale Products

If you want to change the background color of On Sale Products section, then insert this in Appearance > Customize > Additional CSS.

How To Remove On Sale Products Section Title

Insert this in Appearance > Customize > Additional CSS to remove or hide the On Sale Products section title.

How To Change On Sale Products Section Title

If you want to change the section title from “On Sale” to anything else, just insert this snippet at the bottom of your child theme functions.php

How To Display More Products on  On Sale Section

By default Storefront On Sale Products section displays 4 products. Lets increase it to 12 products.

How To Add a Text Below On Sale Products Section

This code snippet will let you add text or HTML depending on your need below the On Sale Products section title. Just place PHP this snippet at the bottom of your child theme functions.php file before “?>”

 

7. Best Selling Products

Best Selling Products sections displays most sold products of your store. Simply put, it sort all the products by total sales and display them in a descending order.

How To Remove Best Selling Products from Storefront Homepage

There are two ways you can remove the Best Selling section from your Homepage template. One is installing Homepage Control plugin and the other is removing using the hooks. Lets see how we can remove the Best Selling Products section using Hooks. Place this in your themes functions.php

How To Change Background Color of Best Selling Products

If you want to change the background color of Best Selling Product section, then insert this in Appearance > Customize > Additional CSS.

How To Remove Best Selling Products Section Title

Insert this in Appearance > Customize > Additional CSS to remove or hide the Best Selling Product section title.

How To Change Best Selling Products Section Title

If you want to change the section title from “Best Sellers” to anything else, just insert this snippet at the bottom of your child theme functions.php

How To Change Number of Best Selling Products

By default Storefront Best Selling section displays 4 products. Lets increase it to 12 products.

How To Add a Text Below Best Selling Products Section

This code snippet will let you add text or HTML depending on your need below the best selling section title. Just place PHP this snippet at the bottom of your child theme functions.php file before “?>”

Where to add this code?

If it is a PHP snippet then you can place it at the bottom of your child theme functions.php file before “?>” or use My Custom Functions plugin to add the code. If it is a CSS snippet then insert it in Appearance > Customize > Additional CSS.

If you don’t want to get your hand dirty in code, try checking out Storefront Design Customizer. It will let you customizer your Storefront WooCommerce theme without touching any code.

12 Comments

  1. Henry

    This is how tutorials should be done. It makes you learn and stop relying to others and plugins most of the time. Appreciate this.

    Reply
  2. James Morris

    Awesome..exceptionally well done and very helpful. I’ve got this one bookmarked

    Reply
  3. olympicwave

    Best of the best tutorial. Clear, in detail, everthing to make this tutorial the best. Thank you very much.

    Reply
  4. ProbablePossible

    Storefront no longer lets you pick your template– if you designate a homepage, it gets templated.
    What I want to do though, is to change the number of columns in the categories array (for desktops and latptops) from 4 to 3, so that I can make the category images a different shape.
    How do I do that?

    Reply
  5. yogamat1

    How can i display products by list in Mobile and tablet version? Thanks

    Reply
  6. Traiana Paltzic

    how to add blog excerpts on home page , like a widgets with products but with the latest posts. thanks

    Reply
  7. Mithat

    Well done! This my first dive into modifying a Wordpress theme. I’ve been trying to figure out a way to include additional Google Fonts in my child theme. (I don’t want to use a plugin to manage fonts.) Any idea if there’s a way to call wp_enqueue_style and wp_dequeue_style from the child functions.php so it works?

    Reply
  8. chibigaijins

    Great tutorial, helped a lot! Thank you!

    Reply
  9. Dijital Oyun Merkezi

    How To Change Shop by Category and New in Products Section Title please help me code please?

    Reply
  10. Nick

    How do i change the page content section width [homepage control plugin]. the width seems centred and not full width the same as other sections [sales, featured recent etc]

    Reply
  11. amanosco

    Really useful information you are giving away here, thaks a lot. this is how the Storefront Design Customizer works, i have installed it and already have got my store look great on mobile and desktop. i have used a lot of CSS in the Aditionall CSS section, however wordpress.com sent me a message saying i should make a child theme to ensure my code will work over updates.. should i trust this pligins behaviour, or should i follow the child theme advice?

    Reply
  12. Haqi

    BEST TUTORIAL YET!!!! Clear and consise.

    Reply

Leave a Reply