is_product_category(‘Services’) not working

You can use below code to hide add to cart & price for WooCommerce products in the ‘Services’ category. // Specific product category archive and shop pages add_action( ‘woocommerce_after_shop_loop_item_title’, ‘hide_loop_product_prices’, 1 ); function hide_loop_product_prices(){ global $product; if (! is_user_logged_in()) { if( is_product_category(‘services’) || has_term( ‘services’, ‘product_cat’, $product->get_id() ) ){ // Hide prices remove_action(‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_template_loop_price’, 10 … Read more

How to make the RTL.css the dominant css code?

To load your stylesheets in a particular order, add dependencies. For example, to ensure the parent stylesheet is loaded before the child stylesheet, you would say <?php add_action( ‘wp_enqueue_scripts’, ‘theme__child_enqueue_styles’ ); function theme__child_enqueue_styles() { wp_enqueue_style( ‘theme-style’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘theme-child-style’, get_stylesheet_uri(), array( ‘theme-style’ ) ); } ?> The array after the stylesheet URL … Read more

Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page

Each product should have a unique class identifier in the body. Compare two product pages and depending on the theme you are using. Allot of them have a unique css identify. Look for something like: postid- followed my numbers for example. If you had something like: <body class=”product-template-default single single-product postid-3592 wp-custom-logo woocommerce woocommerce-page woocommerce-no-js … Read more