A necessary element of good store design is the ability to classify products. If you display the products you sell in the right way, you will make a huge difference in sales. The more accessible the product is, the more likely customers are to view and purchase the product. Therefore, this guide will show you various ways to display categories on the woocommerce shop page. Why are categories displayed on the shop page? If you sell a wide range of products, you should make it easy for visitors to find what they want. Careful organization is needed. Displaying all products at once may overwhelm shoppers and become an easy way to lose leadership. Instead, you should consider organizing store pages in a way that helps the store.
One of the best ways is to display categories separately to make the most of the shop layout. This allows you to focus on the product categories your customers need and switch between all the product types you are interested in. This will make navigation easier and find what you want faster, resulting in more sales. If you sell categories and specific category settings (such as electronics), you want smartphones, desktop PCs, PC parts, and other devices to appear in separate categories. This way, if a customer is interested in computer parts, they can view a specific category and find what they need in that category. Similarly, if you’re not sure in which categories the desired products are listed, references to other products in the same category may help you understand this.
Alternatively, you can focus on smaller categories by displaying only specific categories of products on the shopping page. Only promote specific products on the store page, and please stand out when selling a small number of high-quality products. Shopping page configuration is very important because customer-friendly layout will have a great impact on sales. With this in mind, let’s look at several ways to display categories and customize them on the woocommerce shop page. There are many ways to display categories on the woocommerce shop page. There are many ways to display categories on the woocommerce shop page.
Let’s learn more about each method by programming the shortcut code of theme customizer on the dashboard. Note: this presentation uses the storefront theme, so the options for the theme may be slightly different. However, most options are similar, so there should be no problem following this guide. 1) The easiest way to display categories on the category display shop page using the woocommerce dashboard is to use the woocommerce settings. To do this, navigate to shapes > Customize on the dashboard and click woocommerce > catalog in the customize sidebar.
Here, you can use the shopping page display to select category display or category and product display. The first option only displays the product category on the shopping page, and the second option displays the product category and other products. For example, if category display is enabled in the shopping page display, the shopping page displays only product categories, as follows: However, if the category and product are selected, the category will be displayed first, and then the other product catalogs will be displayed. You can also use the following category display options to show or hide product subcategories and products on the product category page.
If you are satisfied with customization, don’t forget to click publish to save your changes. The most useful thing about this method is that it can preview changes in real time, so it’s easy to use. But there are only two options, so it doesn’t provide much control. For more flexibility, check the following methods:
array() ) {
$parentid = get_queied_object_id();
$args = array(
\
);
$terms = get_terms( ‘product_cat’, $args );
if ( $terms ) {
echo ‘
‘;
foreach ( $terms as $term ) {
echo ‘
‘;
woocommerce_subcategory_thumbnail( $term );
Echo \
echo ‘
slug . ‘ \
Echo $term – > name;
Echo \
Echo \
Echo \
}
Echo \
}
}
add_action( ‘woocommerce_before_shop_loop’, ‘product_subcategories’, 50 ); As mentioned above, this function adds the category part to the woocommerce shop page. However, it may not be the desired shape or it may not match the site style. Because you must specify the style of the newly created category section. Style the custom category section. Now let’s add customizable CSS to the additional CSS section of the theme customization program. On the WordPress dashboard, navigate to shapes > Customize, open the customize theme menu, and then click Add CSS. Male then paste the CSS snipet into the attached CSS section and customize it to match the website style. As you can imagine, if you have CSS knowledge, you can choose more. If you don’t know how to add code, see the guide on how to add CSS to word press. The following snippet changes the size of the image and the text below the image: This code is an example. Please customize freely and specify the appropriate style for the site to set the category part. ul. product-cats {
Blank – left: 0;
}
ul. Product – Cat plum{
List style: none;
Blank – left: 0;
Margin – lower end: 4.236em;
Text alignment: centered;
Position: opponent
}
ul. product-cats li img {
Blank: 0 automatic;
}
@Media screen and (minimum width: 768 pixels){
ul. Product – Cat plum{
Width: 29.4117647059%;
towards the left
Blank right:. 883529412%;
}
ul. product-cats li:nth-of-type(3) {
Right margin: 0;
}
}When the customization is completed, the category settings must be updated to the new page. Male bonus: in order to confirm whether your shopping page is customer-friendly as much as possible, other changes can be applied to improve the shopping page. This includes managing the number of products displayed, adding the products with the highest score, etc. The idea is to easily find products and provide customers with a better shopping experience. Let’s see how to increase sales by customizing the store page. First, let’s look at how to add a list of the most popular products directly below the product category. In addition to adding product categories by displaying the most popular products on the woocommerce shop page, you can also add custom product catalogs using shortcut codes. This includes the most popular products section, which you can display using the following shortcuts: You can add the shortcut code properties found here, as shown earlier. To add the most popular products section to the shopping page, simply add the following shortcut Code: In this case, to display products in two columns, add several attributes. [products orderby = \