ææÑÏÈÑíÓ WordPress ææßæãÑÓ WooCommerce ÇÒÇáÉ ÑÇÈØ Remove product description Link
woocommerce remove product details link - Prevent clickable image in product page
skip the single product page - disable the single product page in WooCommerce?
plugins to hide or disable the WooCommerce product page
hide/disable single product page
åÐÇ ÇáßæÏ åíÒíá ÑÇÈØ ÇáÏÎæá Úáì ÊÝÇÕíá ÇáãäÊÌ ãä Úáì ÇáÕæÑÉ æ ÚäæÇä ÇáÕæÑÉ æ ãä Çì ãÇßä ÇÎÑ
ßæÏ PHP:
// Remove links from thumbnails
add_action( 'init', function() {
// Woo core hooks
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 );
// Theme hooks
remove_action( 'wpex_woocommerce_loop_thumbnail_before', 'woocommerce_template_loop_product_link_open', 0 );
remove_action( 'wpex_woocommerce_loop_thumbnail_after', 'woocommerce_template_loop_product_link_close', 11 );
} );
// Custom heading output
if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
function woocommerce_template_loop_product_title() {
echo '<h2 class="woocommerce-loop-product__title">' . get_the_title() . '</h2>';
}
}
---------------------------------------------
ØÑíÞÉ ÇÎÑì ãä ÎáÇá css äÇÌÍÉ
---------------------------------------------
Try this to remove the link to the product page except the
Add to cart button:
ßæÏ:
body.archive .woocommerce-loop-product__link {
pointer-events: none;
cursor: default;
}
Try this instead to remove the link to the entire product box
(also to the Add to Cart button):
ßæÏ:
body.archive ul.products li {
pointer-events: none;
cursor: default;
}
ÇáãÑÌÚ:
https://stackoverflow.com/questions/...e-product-page
https://wpexplorer-themes.com/total/snippets/remove-woo-entry-links
ÇáãÝÖáÇÊ