More than 80 tips for customizing the woocommerce theme on the front desk of the store: a guide to customizing the theme on the front desk of the ultimate store

How to customize the foreground theme of woocommerce store? This article contains more than 80 tips for customizing the woocommerce storefront theme. After reading this guide, it will be easy to customize the woocommerce storefront theme. Woocommerce storefront is a simple and powerful theme, available free of charge. This theme can effectively control the store from the perspective of product demonstration and user access. Free, with a variety of customization options through sub themes.
Please tell me the basics before learning all the tips for customizing the woocomer storefront theme. We also provide detailed guidelines for installing and configuring the woocommerce storefront topic. Is there a woocommerce theme androg woocommerce project at the front desk of the store? So storefront is the best e-commerce theme for elegant cooperation with woocommerce. The theme is developed by woommerce core developers. It has a clean and minimal design and can be customized of any type.
This theme is reactive design and is applicable to all equipment. When you this topic, you’ll get some amazing features: Elegant design. Reactive layout. SEO friendly annotation. Customize the page template. Free Admission. GPL license. Prepare to translate into other languages. the woocommerce storefront theme. The installation and configuration method of storefront theme is the same as that of other plug-ins on the WordPress site. The first is appearance and themes, and the last is add new. Enter \
After installation, you can activate the theme using the activate button. Male is also WordPress. You can the latest version of storefront from www.storefront.org. Then, the extracted folder can be uploaded to the theme directory of the server through FTP. Then, you must go to appearance and then to themes to activate the theme. Page templatestorefront automatically creates two additional page templates in addition to the default woocommerce page. They are web pages and total width. Home page template. The home page template provides a good way to display all products and provides an overview of products and product categories. Store visitors first visit this page when entering the store.
Because you only need to add content to create and display new pages, it’s very easy to set up. Then, you must select home from the template drop-down menu in the page properties meta box. After publishing this page, you can go to settings and set it as the home page by reading. Then select \
A variety of clusters such as recommended products, products loved by fans, discounted products, best sellers, etc. These elements are displayed in the same order as the backend. You can also use drag and drop to click products and then click categories to modify them. Total width of shopping cart and settlement. Total width is another template that spans the entire page without sidebars. It is the recommended option for shopping cart and settlement pages. Navigate to the shopping cart and payment page and select total width from the drop-down menu in the page properties section. The menu constitutes the first screen display of the store
. site title. widget_product_search
Display: none;
}The results are as follows: 5. Create a separate drop-down menu for mobile devices storefront can be adjusted to all screen sizes to improve responsiveness. If there are multiple menus, it is important to direct visitors’ attention to a specific location on the site. You can use the WordPress customization program to add the following code snippets to do this: If you navigate to a shape, customize it, and then choose the menu option, you can create a custom menu design by selecting portable menu for the small screen. 6. Turn off customer comments. By default, woocommerce and stores have standard features for comments. Through this excellent integration, you can understand what visitors think of your products. However, customer reviews may not apply to all types of e-commerce stores. To turn off customer reviews, go to woocommerce settings and go to the products tab. At the bottom of the page, you can find the \
.main-navigation ul. menu ul. sub-menu{
Background color: #f0f0f0;
}The results are as follows: 9. The default navigation bar hides storefont theme. By default, all pages are displayed as a menu. To hide the default navigation bar, simply deleting the menu is not enough. Just go to the customize and add CSS section and add the following line: storefront-primary-navigation {
Display: none;
}The results are as follows: 10. To hide the product title on the store page hide the product title on the store page, simply go to customization, then go to the additional CSS section and add the next line. h2. woocommerce-loop-product__title {
Display: none! important
}The results are as follows: 11. Just go to the \
Margin – bottom: 0px;
}The results are as follows: 12. Increase the width of the search window. How do I expand the width of the search window? Use the additional CSS section to add the following lines: woocommerce-active . site-header . site-search {
Width: 44.739%;
}
#masthead . site-search . Widget_product_search input [type = \
Width: 700px! important
}The results are as follows: 13. Just go to the \
Height: 77px;
}
.col-fu
ll {
Top: -84px;
}
@Media specific screen and (maximum width: 640px){
. site title{
Height: automatic;
}
.col-full {
Top: 0;
}
}The results are as follows: 14. Adding a text audit to the woocommerce registration page or providing discount coupons to new registrants is important to add a message to the registration page. To save it, the function of the sub topic. Just add the function to the PHP file. add_action( ‘bp_signup_profile_fields’, function() {
\/\/Start editing below.
?>

Don’t forget to check email and registration.
Male 10% discount coupon male!

Breadcrumbs is an amazing tool for optimizing search engines, but to delete it, the function of sub themes. Simply add the following code to the PHP file: add_filter( ‘woocommerce_get_breadcrumb’, ‘__return_false’ ); The results are as follows: 16. Change the URL link of the logo. Usually, the WordPress Theme connects the home page of the site to 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. What if the home page is in another location? That is, if you need to customize the link, you must configure the URL. To change, the functions in the subtopic. You must add the following code to your PHP file: add_action( ‘storefront_header’ , ‘custom_storefront_header’, 1 );
Function custom_storefront_header(){
Remove_action (\
add_action( ‘storefront_header’ , ‘custom_site_branding’, 20 );
Function custom_site_branding (){
\/\/Set a link to a logo or site title here.
$link = home_url( ‘\/my-custom-link\/’ );
?>

‘custom-logo’, ‘itemprop’ => ‘logo’ );
$image_alt = get_post_meta( $custom_logo_id, ‘_wp_attachment_image_alt’, true );
If (empty) ($image_alt){
$custom_logo_attr [\
}
$logo = sprintf( ‘%2$s‘,
esc_url( $link ),
Wp_get_attach_image ($custom_logo_id, \
);
}
elseif( is_customize_preview() ) {
$logo = sprintf( ‘‘ , esc_url( $link ) );
}
$html = is_front_page() ? ‘ ‘ . $ Logo“ ‘ : $logo;
} elseif ( function_exists( ‘jetpack_has_site_logo’ ) && jetpack_has_site_logo() ) {
$logo=site_logo()->logo;
$logo_id = get_theme_mod( ‘custom_logo’ );
$logo_id = $logo_id ? $ logo_id : $logo[‘id’];
$size = site_logo()->theme_size();
$html = sprintf( ‘

%2$s‘,
esc_url( $link ),
wp_get_attachment_image( $logo_id, $size, false, array(
\
\
\
) )
);
$html = apply_filters(
) {
\/\/Define the desired city in the layout (here is an example of a city).
$option_city = array(
\
\
);
$fields [\
$fields[‘city’][‘options’] = $option_cities;
Return the $field;
}Look at the fifth line of the code to define the list of cities. The first part of the code \
Display: none! important
}The results are as follows:
25. To hide the add to cart button on the product page, simply go to customize, then go to the additional CSS section and add the next line. single_add_to_cart_button {
Display: none! important
}The results are as follows: 26. Remove the storefront subject credit from the footnote. By default, the woommerce storefront subject adds the subject credit to the footnote. You may want a footer that contains personal touches. To remove the theme credit, the function of the sub theme. Simply add the following functions to the PHP file: Add_action (\
Function custom_remove_footer_credit (){
remove_action( ‘storefront_footer’, ‘storefront_credit’, 20 );
add_action( ‘storefront_footer’, ‘custom_storefront_credit’, 20 );
}
Function custom_storefront_credit(){
?>

copy <?php
// 편집을 종료합니다.
} ); 15. Storefront 테마에서 이동 경로 제거 대부분의 웹사이트에서 페이지 상단에 탐색경로가 추가되어 쉽게 탐색할 수 있습니다. 각 페이지 상단에 있으며 해당 페이지 또는 제품이 속한 카테고리를 보여줍니다.

27. Part of the color and font size of the store component change customization tool cannot directly change the font color or size of the page component. You can easily change it by adding the following CSS lines of code: To do this, you just go to customization, then go to the additional CSS section and add the next line Widget area. widget {
Color: green;
Font size: 1em;
}The results are as follows: 28. On the product picture, the store front desk displays the \
Position: absolute;
Top: 137px;
Right: 62px;
}The results are as follows:
29. Change the color of the \
Background color: #ffffff;
Border color: green;
Color: green;
}The results are as follows: 30. Change the color of the quantity \
Color: #000;
Background color: #f5df72;
}The results are as follows: 31. WordPress customizer is used to change the background color of storefront titles. tooth
If yes, use the PX value. 350 pixels * \/}
\/*Search window**
.site-header . Site search {width: 30%! Important; \/ * use PX value if necessary. 350 pixels * \/}41. The function of deleting the sidebar and moving it to the full width of the method sub theme in the woocomerce product page. Simply add the following code to the PHP file: add_action( ‘get_header’, ‘remove_storefront_sidebar’ );
if ( is_product() ) {
Remove_action (\
}
}
In the add CSS section, add the following line:
body. Woocomerce#primary{width: 100%;} The results are as follows:
42. Add an image or icon to a menu item. To do this, you simply install and activate the menu image. Icons make it easy to create plug-ins and add icons as needed. Simply add the required dimensions to the other menu fields. The following is a visual description:

43. The method of adding a top bar to the front desk of the store. This can be used to add wonderful things, such as social icons or welcome messages. To add it, use the function of the following line of code in the subtopic. Just add it to your PHP file\/**
*Add a top bar to the storefront in front of the title.
*\/
Function storefront_add_topbar(){
?>


Welcome to the woostore test

44. Adding a custom message to the top bar is another way to add a custom message to the top bar. The function of the subtheme. Just add the following line to your PHP file\/**
*Add a top bar to the storefront in front of the title.
*\/
Function storefront_add_topbar(){
Global $current_user;
get_currentuserinfo();
If (! Empty ($current_user – > user_firstname){
$user = $current_user->user_firstname;
}Another{
$user = _ (\
}
?>

Welcome!

<?php
}
} 사용자 정의 링크는 7행에 있습니다. ' ( '/my-custom-link/' ); ', 여기서 "my-custom-link"로 교체하여 사용자 지정 링크를 추가합니다. 17. 스토어 페이지에서 카테고리를 완전히 제거 이 기능은 카테고리를 간단하게 제거합니다. functions.php 파일에 다음 줄을 추가해야 합니다. 함수 storefront_child_reorder_homepage_contant() {
remove_action('홈페이지', '스토어프론트_제품_카테고리', 20 );
}
add_action('초기화', '상점_자식_재주문_홈페이지_컨텐트'); 결과는 다음과 같습니다. 45. Meta sliders are very popular on many word press websites by using storefront to turn meta sliders into full width. To increase the slider to the total width, add this code. Add to the stretch slider of the subtopic to make it the total width. Add_action (\
Function child_theme _init (){
add_action( ‘storefront_before_content’, ‘woa_add_full_slider’, 5 );
}
Function woa_add_full_slider() {? >



47. How to delete the search window from the title is the function of the sub topic. Another way is to paste the following code into the PHP file and remove the search bar from the title: Add_action (\
Function jk_remove_storefront_header_search(){
Remove_action (\
}The results are as follows: 48. How to hide page titles in storefont? To hide page titles, use WordPress. The org community needs to install and activate the title toggle plug-in for the storefront theme. More than 10000 users trust this plug-in. 49. In the footnote to storefront, \
The method of deleting \
Function custom_remove_footer_credit (){
remove_action( ‘storefront_footer’, ‘storefront_credit’, 20 );
add_action( ‘storefront_footer’, ‘custom_storefront_credit’, 20 );
}
Function custom_storefront_credit(){
?>

copy

50. The way to add the font awesome icon to the front menu of the store is WordPress. Font awesome 4 menus plug-in provided by org community. More than 50000 users trust this plug-in. <?php
} 결과는 다음과 같습니다. 51. To rename navigation in storefront’s mobile view, use this code as the function of the sub topic. Just add it to your PHP file. Function storefront_primary_navigation(){
?>


\

52. How to add a customer parent in the \
*After the welcome message, print the customer’s Avatar on the \
*\/
Function storefront_myaccount_customer_avatar(){
$current_user = wp_get_current_user();
echo ‘‘ . get_avatar( $current_user->user_email, 72, ”, $current_user->display_name ) . ‘ ‘;
}
add_action( ‘woocommerce_before_my_account’, ‘storefront_myaccount_customer_avatar’, 5 );
Then, add the following CSS command rules in the \
.myaccount_avatar {
Right side of border: 1px solid RGBA (0,0,0,0.1);
towards the left
Right side of down jacket: 10px;
Width: 83px;
}
.myaccount_user {
border-left: 3px solid #787E87;
Floating: right side;
Left side of down jacket: 10px;
Width: 88%;
}The results are as follows: 53. To change the footer height of woocommerce storefront, it is very easy to add the following CSS code in the \
Top of down jacket: 25px;
}
div.site-info {
Top of down jacket: 16px;
Lower end of down jacket: 25px;
}The results are as follows: 54. 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. Just add the following code to the \
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: 55. To add a background color to the home page of the store, you must first determine the part to add the color. Add the following code in the \
Background color: #ffeb3b;
}The results are as follows:

56. Family expenses
To delete or hide the branch part title, you must first determine the part to delete or hide. In the \
.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:

57. 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 _sale _products _argssub topic function. 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:

58. The function in the sub topic is used to add some products on the home page of each page. Just add the following line to the PHP file: add_filter(‘storefront_featured_products_shortcode_args’,’custom_storefront_featured_product_per_page’ );
\/\/Recommended products per page
Function custom_storefront_feature_product_per_page ($args){
$args [\
Return $args;
} 59. The main page is part of the product column grid or how to add functions in the column sub topic. 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:

60. 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;
} 61. 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_storef
ront_product_featured_description’);
Function custom_storefront_product_feature_description() {? >

<?php
}
add_action( 'storefront_before_header', 'storefront_add_topbar' ); 그런 다음 사용자 지정 도구의 추가 CSS 섹션에 이 CSS를 추가합니다. #톱바 {
배경색: #1F1F20;
높이: 40px;
줄 높이: 40px;
}

#톱바 피 {
색상: #fff;
} 결과는 다음과 같습니다.

68. To add a storefront custom footnote link, you can use this code to add a custom footnote link and specify the style as needed. The following line of code is the function of the sub topic. Just add it to your PHP file. Add_filter (\
$output=[
sprintf(
\
),
$default_links
];
Return internal wave(
\
);
} ); The results are as follows:

69. If you run the blog as a blog excerpt woommerce storefront theme for the store front desk presentation, this code can display the blog excerpt in the blog post archive instead of the entire content. The following line of code is the function of the sub topic. Just add it to your PHP file. Add_action (\
Remove_action (\
Add_action (\
echo ‘

‘;
if( has_post_thumbnail() ) {
The_post_thumbnail (\
}
the_excerpt();
Echo \
}, 30);
} ); 70. To add a custom meta viewport label, use the following line of code as the function of the sub topic. Just add it to your PHP file. add_filter( ‘wpex_meta_viewport’, function() {
return ”;
} ); 71. Delete recommended plug-in method notification plug-in notification may be troublesome for some people, and it is very easy to delete. The following line of code is the function of the sub topic. Just add it to your PHP file\/\/ Delete specific plug-ins
Function my_ recommended plugins ($plugins){
\/\/Remove woocommerce installation notification
Unset ($plugins [\
\/\/Return to plug-in
$plugin returns;
}
add_filter( ‘wpex_recommended_plugins’, ‘my_recommended_plugins’ );
\/\/Delete all plug-ins
\/\/Notifications are also used to notify updates, so they are not recommended when using some plug-ins.
add_filter( ‘wpex_recommended_plugins’, ‘__return_empty_array’ ); 72. How to conditionally show or hide footer annotations, the next code line is the function of the sub topic. Just add it to your PHP file. Function my_callout_visibility ($bool){
\/\/Hide on first page
if ( is_front_page() ) {
$bool = false;
}
\/\/Boolean return
Return $bool;
}
add_filter( ‘wpex_callout_enabled’, ‘my_callout_visibility’, 20 ); 73. The method of deleting the topic meta generator is used to support receiving notifications about the topic version being used. There is no problem there, but if you want to remove it, the method is as follows: The following line of code is the function of the sub topic. Just add it to your PHP file. Add_action (\
remove_action( ‘wp_head’, ‘wpex_theme_meta_generator’, 1 );
}, 10 ) 74. How to automatically add spaces under the title of a page without a title
Turned \
Recommended product section title storefront _home _after _feature _products – malepopular products run after website section storefront _home _before _popular _products – malepopular product section title storefront _home _after _popular _productsrun after website section – maleselling In product storefront_homepage_befor_on_sale_products – malerun storefront_home_feat_on_sale_products before the homepage section, run storefront_on_sale_products – malebest-selling products in the homepage section storefront_home_befor_before_best_sales_products – malerun before the homepage section
Storefront _home _aft _best _sellers _products _title – runs after the title of the best selling products section
After the storefront_homepage_aft_best_sellers_products – malehome section, run the blog archive page storefront_loop_before – before all posts in the Blog Archive.
Storefront_loop_post – runs before each post in the Blog Archive
Storefront_post_content_before – runs before each post content in the Blog Archive
Storefront_post_content_after – runs the normal page after each post content in the Blog Archive storefront_page_before – runs after the \
Storefront_page – runs after the \
Storefront_page_after – runs a single post at the end of the \
Storefront_single_post_top – runs after the open male tag in a single post.
Storefront_single_post – run after storefront_single_post_top is hooked up to display the content of the post.
Storefront_single_post_bottom – runs before the closed male tag in a single post
Storefront_single_post_after – the sidebar that runs before the male tag closed in a single blog post storefront_sidebar – if there are widgets, the walkthrough is run on all pages that contain the sidebar. Storefront_before_footer – runs before the male tag
Storefront_footer – run before closing the label
Storefront_after_footer – after closing the label, execute the filter reference guide. This section lists the most commonly used filters in the first screen theme of the store. Comment file: comment. PHP storefront_comment_form_args – filter comments before and after the HTML title of the reply. Store template function file: \/ Inc \/ storefront template functions. PHP navigation menu storefront_menu_toggle_text – reactive menu switching text filtering home page product categories storefront_product_categories_args – filtering home page product categories
Storefront_product_categories_shortcode_args – filter home page product category shortcut codes
Ont wants the custom guide to be useful. Quick modification solution of WordPress menu CSS class divi mobile menu How to create a number in word press without using the legal plug-in

Author:

Leave a Reply

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