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'];
Dequeue or deregister a style or script in WordPress is now easy and no need more time to find solutions online. Example 1: I want to remove styles using `dequeue` function. If you can see, I want to remove the `anton-accordion-style-css` styles. Please see codes below. <link rel='stylesheet' id='anton-accordion-style-css' href='https://www.anthonypagaycarbon.com/wp-content/plugins/4nton-accordion/assets/css/style.css?ver=4.9.1' type='text/css' media='all' /> Code to…
Lorem ipsum dolor sit amet, ferri oratio definitiones ei vim. Mea ei nulla noluisse dissentiunt, id dicat nominati repudiare usu. Nam maluisset consulatu gubergren cu, falli praesent vis ea. Indoctum deseruisse quo ne, pro ex lorem ancillae accusamus. Usu conceptam maiestatis at. Mei semper docendi concludaturque id. An vix paulo urbanitas consetetur. Rebum impedit an…
Copy this code and paste to your functions.php function wpa54064_inspect_scripts() { global $wp_scripts; print_r($wp_scripts); // this will show all enqueue’s script } add_action( ‘wp_head’, ‘wpa54064_inspect_scripts’ );
var iframe_url = 'http://www.wala.com/'; var cacheParamValue = (new Date()).getTime() * 1000; var url = iframe_url + "?cache=" + cacheParamValue; jQuery( 'iframe' ).attr( 'src', url ); Output: <iframe width="100%" height="99%" src="http://www.wala.com/?cache=1406685294271000"></iframe>
GRAVITY FORM .gform_wrapper { margin: 0!important; max-width: 100%!important; } .gform_wrapper .top_label li.gfield input, .gform_wrapper .top_label li.gfield select, .gform_wrapper .top_label li.gfield textarea { width: 100%!important; padding-right: 2%!important; padding-left: 2%!important; } .gform_wrapper .top_label li.gfield .ginput_left, .gform_wrapper .top_label li.gfield .ginput_right { width: 49%!important; } .gform_wrapper .gform_footer { padding: 0; margin: 10px 0 0 0; } WOOCOMMERCE TABS .woocommerce-tabs…
For example I want to add a ” Home Slider ” post type. Below is the perfect codes. Just copy and paste it into your functions.php add_action( 'init', 'home_slider_post_type' ); function home_slider_post_type() { $labels = array( 'name' => _x( 'Home slider' ), 'singular_name' => _x( 'Home Slider' ), 'menu_name' => _x( 'Home Slider' ), 'name_admin_bar'…