Product categories WordPress codex
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
Having trouble with this error message anywhere in your WordPress dashboard? Warning: htmlspecialchars(): charset `UTF-7' not supported, assuming utf-8 Inside WordPress admin dashboard go to “Setting > Reading” and here you see some field says ‘ utf-7 ‘. Changed this to ‘ utf-8 ‘ and everthing will be alright. Have a WordPress day.
Where ‘style-woocommerce’ is the ID of your stylesheet and get_stylesheet_directory_uri().’/style-woocommerce.css’ is your .css DIR. wp_register_style( 'style-woocommerce', get_stylesheet_directory_uri().'/style-woocommerce.css' ); wp_enqueue_style( 'style-woocommerce' ); Function below is for woocommerce page css only. This will show on woocommerce pages else is not. add_action( 'wp_enqueue_scripts','home_scripts' ); function home_scripts(){ If( is_shop() || is_product_category() || is_product() ){ wp_register_style( 'style-woocommerce', get_stylesheet_directory_uri().'/style-woocommerce.css' ); wp_enqueue_style(…
How to add a new WordPress user using CPANEL access? Here are some tips to do that. Please read below. Step 1: Login to your CPANEL dashboard. Step 2: Go to your PHPMYADMIN page where you can edit your database. Step 3: Select your wp_user table and click copy button. See image below. Step 4:…
CREATE POST WITH ADSENSE | BLOG POST IS ANOTHER WAY OF EARNING MONEY EDUCATIONAL VIDEO PARA SA GUSTO TUMUKLAS NG MGA BAGONG KAALAMAN KUNG PANU GUMAWA NG WEBSITES. PAKI-SHARE PO VIDEO NG MARAMI TAYONG MATULUNGAN AT MABIGYAN NG ONLINE SKILLS. MARAMI PA TAYONG PWEDE IBAHAGI SA INYO. LINKS: PERSONAL WEBSITE: https://www.anthonypagaycarbon.com/ XAMP DOWNLOAD: https://www.apachefriends.org/download.html WORDPRESS…
How to fix the “Google Maps API error: MissingKeyMapError” using WPBakery Visual Composer WordPress plugin? Are having trouble fixing this error on your end? This error is visible in your console developer tools. Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error To fix the issue, first you have to look the script handler that is registered for…
How to disable zoom in/zoom out on google map iframe tag? Just use style=”pointer-events:none” inline CSS. see example below. <iframe style="pointer-events:none" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1804.199470732143!2d55.32552972069876!3d25.25716190966307!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0000000000000000%3A0x5fea75ca1d9225ff!2sEmirates+Islamic+Bank!5e0!3m2!1sen!2sph!4v1463111255665" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe> Output: