Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/components/woocommerce/archive/index.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + add_filter('woocommerce_show_page_title', '__return_false');
4 + remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar');
5 +
6 + remove_action(
7 + 'woocommerce_before_main_content',
8 + 'woocommerce_breadcrumb',
9 + 20
10 + );
11 +
12 + remove_action(
13 + 'woocommerce_before_main_content',
14 + 'woocommerce_output_content_wrapper',
15 + 10
16 + );
17 +
18 + remove_action(
19 + 'woocommerce_after_main_content',
20 + 'woocommerce_output_content_wrapper_end',
21 + 10
22 + );
23 +
24 + remove_action(
25 + 'woocommerce_before_single_product_summary',
26 + 'woocommerce_show_product_sale_flash'
27 + );
28 +
29 + add_action('wp', function() {
30 + $location_documents = [];
31 +
32 + if (class_exists('\ElementorPro\Modules\ThemeBuilder\Module')) {
33 + $location_documents = \ElementorPro\Modules\ThemeBuilder\Module::instance()
34 + ->get_conditions_manager()
35 + ->get_documents_for_location(
36 + 'archive'
37 + );
38 + }
39 +
40 + if (empty($location_documents)) {
41 + remove_action(
42 + 'woocommerce_archive_description',
43 + 'woocommerce_taxonomy_archive_description'
44 + );
45 +
46 + remove_action(
47 + 'woocommerce_archive_description',
48 + 'woocommerce_product_archive_description'
49 + );
50 + }
51 + });
52 +
53 +
54 + add_action('woocommerce_before_shop_loop', function () {
55 + echo '<div class="woo-listing-top">';
56 + }, 12);
57 +
58 + add_action('woocommerce_before_shop_loop', function () {
59 + echo '</div>';
60 + }, 31);
61 +
62 +