The site uses woocommerce
. The Магазин
page is not used as the main page, but one of the pages that can be selected from the menu, but in the woocommerce
settings “Store Page” this Магазин
page is selected. And if you open this Магазин
page, woocommerce
to the top of the page displays a list of all products.
How can you turn off the display of goods on this page Магазин
at the very top, because this page displays content created in the constructor, which uses woocommerce woocommerce
to display products in the right place. In the functions.php
file there is such code:
remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 ); add_action( 'woocommerce_after_shop_loop', 'thegem_woocommerce_after_shop_content', 15); add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 15 ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_product_archive_description', 15 ); remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ); remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 ); remove_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 20); remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30); add_action('woocommerce_before_shop_loop', 'thegem_woocommerce_before_shop_content', 4); add_action('woocommerce_before_shop_loop', 'thegem_woocommerce_before_shop_loop_start', 11); add_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 15); add_action('woocommerce_before_shop_loop', 'woocommerce_breadcrumb', 20); add_action('woocommerce_before_shop_loop', 'thegem_woocommerce_product_per_page_select', 30); add_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 40); add_action('woocommerce_before_shop_loop', 'thegem_woocommerce_before_shop_loop_end', 45); remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10); remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5); add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10); remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); add_action('woocommerce_shop_loop_item_labels', 'woocommerce_show_product_loop_sale_flash', 5); add_action('woocommerce_shop_loop_item_labels', 'thegem_woocommerce_show_product_loop_featured_flash', 10); add_action('woocommerce_shop_loop_item_labels', 'thegem_woocommerce_show_product_loop_out_of_stock_flash', 10); add_action('woocommerce_shop_loop_item_image', 'woocommerce_template_loop_product_thumbnail', 10); add_action('woocommerce_shop_loop_item_image', 'thegem_woocommerce_template_loop_product_hover_thumbnail', 15); add_action('woocommerce_shop_loop_item_image', 'thegem_woocommerce_template_loop_product_quick_view', 40); add_action('woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_rating', 5);
What hook should be removed here so that the goods are not displayed at the very top?