Remove Price from Product Archive Page and Shop Page
function g9_remove_price($price) { if (is_shop() || is_product_category()) return; return $price; } add_filter(‘woocommerce_get_price_html’, ‘g9_remove_price’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function g9_remove_price($price) { if (is_shop() || is_product_category()) return; return $price; } add_filter(‘woocommerce_get_price_html’, ‘g9_remove_price’);Continue reading
remove_action(‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20);Continue reading
function g9_get_post_terms() { global $post; ob_start(); $taxonomy_name = ‘category’; // Taxonomy name $terms = get_the_terms($post->ID, $taxonomy_name); if ($terms) : $term_links = array(); foreach ($terms as $term) { $term_links[] = ‘Continue reading
function g9_scroll_to_first_error_focus($form) { ?>Continue reading
add_filter(‘gform_submit_button_my-for-id’, ‘__return_false’);Continue reading
function g9_sku_cart_page($item_name, $cart_item, $cart_item_key) { // The WC_Product object $product = $cart_item[‘data’]; // Get the SKU $sku = $product->get_sku(); // When sku doesn’t exist if (empty($sku)) return $item_name; // Add the sku $item_name .= ‘‘ . __(“SKU: “, “woocommerce”) .…Continue reading
function g9_woocommerce_add_to_cart_button_text_archives() { return __(‘Buy Now’, ‘woocommerce’); } add_filter(‘woocommerce_product_add_to_cart_text’, ‘g9_woocommerce_add_to_cart_button_text_archives’);Continue reading
remove_action(‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_rating’, 5);Continue reading
remove_action(‘woocommerce_product_thumbnails’, ‘woocommerce_show_product_thumbnails’, 20);Continue reading
function g9_add_woocommerce_support() { add_theme_support(‘woocommerce’); } add_action(‘after_setup_theme’, ‘g9_add_woocommerce_support’);Continue reading