Woocommerce storefront theme page customization [Ultimate Guide]

The customization of the comprehensive theme web page of the store is the core of all online stores built with the comprehensive woolerce theme. Good design attracts visitors to the store, establishes customers’ trust in the brand, and converts them into customers with high loyalty. Therefore, it needs to be customized. In this tutorial, we will show you a few simple home page customizations that you can implement on the store theme home page to improve and make it more attractive for ordinary users who are also useful for search engine optimization. Before creating a custom for a storefront theme, it is best to create a storefront sub theme to ensure that changes are not lost when updating the parent theme. If you want to create more customizations in the storefront topic, please check out this storefront customization guide shared in the previous post.
Custom androg woocomerce storefront theme of store theme website has been installed in more than 200000 activities in WordPress community. There are six topics on the home page. Page content: product category, main products, recent products, highest rated products, discounted products, best-selling products. The home page needs to be set before customer migration. To display the home page section on the home page, you must assign a home page template on the page. The storefront theme automatically creates two additional page templates in addition to the default woocommerce page. They are web pages and total width. Here is how to set the home page template.
Home page templates home page templates provide a good way to display all products and provide an overview of products and product categories. Store visitors first visit this page when entering the store. The appearance of the home page is very important because if visitors are attractive, they can turn into buyers. Simple setup: Log in to the site’s administrators panel as an administrator. Create a new page and add content to display. Then, you must select \
The website shows a variety of clusters, such as recommended products, products loved by fans, discounted products, best sellers and so on. These elements are displayed in the same order as the backend. After setting up the home page, you can now go to customize. 1. Products and product categories and images can be displayed on the home page by deleting the product category image woocommerce from the home page. However, if you want the category to appear as plain text, use this line as a function of the subtopic. You must add it to your PHP file. function. Just add it to the end of the PHP file.
remove_action( ‘woocommerce_before_subcategory_title’, ‘woocommerce_subcategory_thumbnail’, 10 ); The results are as follows: 2. Change the URL link of the logo. Usually, the WordPress Theme links the home page of the site in the logo. This is the standard feature of most websites, and users want to return to the home page every time they click on the logo. But what happens if the site is in a different location? That is, if you need to customize the link, you must configure the URL. To change, the functions in the subtopic. Add the following code to the PHP file
}Another{
$TAG=is_front_page()?” h1′ : ‘div’;
$html = ‘‘ . Esc_html (get_bloginfo (\
If \
$html .= ‘ ‘ . Esc_html (get_bloginfo (\
}
}
Eco$html;
?>


4. Delete recent products on the store website and add new products to the \
Remove_action (\
}
Add_action (\
5. Delete best-selling products from the store home page. For some store owners, best-selling products may not be an ideal function. To delete the bestseller section, click function in the subtopic. Simply add the following code to the PHP file: Function storefront_child_reorder_home_cont(){
Remove_action (\
}
Add_action (\
6. By deleting recommended products, store owners can disable the recommended products section. This is a function of the subtopic. You can add the following code snippet to your PHP file: Function storefront_child_reorder_home_cont(){
Remove_action (\
}
Add_action (\
7. Custom of the sub theme, how to change the color of the horizontal line on the front page of the store. Simply add the following code to the CSS file: page-template-template-homepage . hentry . entry-header,
.page-template-template-homepage . hentry,
.page-template-template-homepage . storefront-product-section {
Border color: red;
} 8. Add a background image to the store front desk of a specific home page. The default store front desk theme includes 6 parts: product category, recent products, recommended products, popular products, discounted products and best-selling products. style. Simply add the following code to the CSS file: storefront-feature-products{
Background image: URL (Add URL here);
Background position: Center;
Background repeat: no repetition;
Background size: cover;
-O-background-size: coverage;
}The results are as follows:

9. Add a background color to the home page section of the store front desk add a background color to the home page section
You can do it. To do this, you must first determine the part to add color. style. It’s easy to add the following code to the CSS file storefront-feature-products{
Background color: #ffeb3b;
}The results are as follows: 10. To delete or hide the home page section title, you must first determine the section to delete or hide. style. Add the following code to the CSS file storefront-recent-products . Section-t Title {display: none;}
.storefront-product-categories . Section-t Title {display: none;}
.storefront-featured-products . Section-t Title {display: none;}
.storefront-popular-products . Section-t Title {display: none;}
.storefront-on-sale-products . Section-t Title {display: none;}
.storefront-best-selling-products . Section-t Title {display: none;} The results are as follows:
11. To change the title of the home page section, first determine the section where you want to delete the title. This list helps identify the home page section filters. Storefront _products _categories _argsstorefront _new _products _argsstorefront _on _sale _products _argsstorefront _best _sally _products _argssub topic function. Simply add the following code to the PHP file: Add_filter (\
\/\/Front page main product title
Function custom_storefront_product_feature_title ($args){
$args [\
Return $args;
}The results are as follows: 12. Home page part product column grid \/ function of how to add column sub topics. Just add the following line to the PHP file: add_filter(‘storefront_featured_products_shortcode_args’,’custom_storefront_featured_product_per_row’ );
\/\/Recommended product list
Function custom_storefront_feature_product_per_row ($args){
\
Return $args;
}The results are as follows: 13. The function of the subtopic, which is used to display more categories on the home page. Just add the following line to the PHP file: add_filter(‘storefront_product_categories_shortcode_args’,’custom_storefront_category_per_page’ );
\/\/Category products
Function custom_storefront_category_per_page ($args){
$args [\
Return $args;
}The results are as follows:
14. How to add a description under the title of the home page section. This code is a function of the sub topic. Just add it to your PHP file. add_action(‘storefront_homepage_after_featured_products_title’, ‘custom_storefront_product_featured_description’);
Function custom_storefront_product_featu
red_description(){ ?>


15. There are two ways to remove the highest rated products section from the storefront home page. One is to install plug-ins that help remove this section. View the homepage control plug-in. We’ll see how this can be done in code. However, hooking can easily delete parts. This is a function of the subtopic. Simply add the following lines to the PHP file: remove_action( ‘homepage’, ‘storefront_popular_products’, 50 ); And style. You can add the following code to the CSS file or attached CSS section, and then delete it storefront-popular-products . section-title {display:none;} The results are as follows: 16. The way to change the title of the highest rated product section is to use the code as the function of the sub topic. Just add it to your PHP file. Add_filter (\
\/\/Front page main product title
Function customization store front desk product popularity title ($args){
$args [\
Return $args;
}The results are as follows: 17. The default value of storefront is to display 4 products in the highest scoring section to display more products in the highest scoring section. In this example, increase the number of products to 12. Functions in subtopics. Just add it to your PHP file. add_filter(‘storefront_popular_products_shortcode_args’,’custom_storefront_top_product_per_page’ );
\/\/Recommended products per page
Function custom_storefront_top_product_per_page ($args){
$args [\
Return $args;
}The results are as follows:
18. There are two ways to delete the product section being sold from the store home page. One is to install plug-ins that help remove this section. View the homepage control plug-in. In this case, we will use one line of code. By hooking, parts can be easily deleted. This is a function of the subtopic. Just add the following lines to the PHP file: remove_action (\
_New_products_title – executed after the new products section title storefront_new_products – executed after the hopage section storefront_home_aft_feat_products_title – executed after the featureproducts section title storefront_home_home After _feature _products – executed after the _home _before _population _products _products – executed after the _home _after _population _products – executed after the _homesection _ _before – before the product _before Mepage_aft_best_sell_products_title – executed at the best selling products section title storefront_home_aft_best_sell_products – executed at the home section store function file: \/ Inc \/ storefront functions. PHP storefront_header_styles – filter the header styles storefront_home_content_styles – filter the home page content styles course conclusion this article highlights 18 different storefront theme home page self-defined ideas that can be created for the home page of woolerce storefront theme. These customizations have been tested and acted on as shown in the screenshot. WordPress beginners and functions. If you don’t know where to find your PHP file, follow these simple steps: Log in to the WordPress site and access the dashboard as an administrator. In the panel menu, click shape Menu > theme editor menu. After the theme editor page opens, navigate to the theme feature file where you want to add features. It’s as simple as it is. In this article on customizing the store front desk theme home page, you can see the flexibility of the store front desk theme and use filters and hooks to create the required customizations. Enter an additional CSS section or CSS code to specify the style of the additional style. CSS files are available. Similar driver shop front desk woocomer
More than 80 tips for customizing the theme of woocommerce: hide products in the customization guide of the front desk theme of the ultimate store woocommerce or hide products by category or role woocommerce method for obtaining the name of the current product category woocommerce method for setting recommended products woocommerce all on the shopping page of woocommerce Hidden product method calculation of items added in shopping cart woocommerce shopping cart number woocommerce method of no price hidden products in woocommerce search results method of hiding woocommerce products woocommerce product attributes step-by-step use method [overall guide] How to create numbers without using plug-ins in word press

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *