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'];
How to solve Jquery on click inside or outside the div element ? Just copy the codes below to your script. $( document ).click( function( e ){ var mde = $( '.my-div-element' ); if( ! mde.is( e.target ) && mde.has( e.target ).length === 0 && mde.length ){ // I'm clicking outside of my div element…
How to hide Gravity Form field Label? I have 2 ways to solve the problem. Option 1: via CSS code. #gform_wrapper_1 label.gfield_label { display: none; } Option 2: via PHP code to be placed on your functions.php. add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' ); Happy coding… 🙂
Warning: sprintf(): Too few arguments in \wp-admin\includes\class-bulk-upgrader-skin.php on line 152 error from TGM Plugin Activation. To fixed this error is just need to edit the files describe on the screenshot. To edit just fine the `skin_update_successful` just like the image below. Make sure to remove the `onclick=”%2$s”` codes on 2 elements. Make sure you are…
The7 pagination in custom WP_Query, just copy the code below and paste it in your functions.php. dt_paginator( $query, array( 'class' => 'paginator no-ajax', 'ajaxing' => false ) ); [php] Example: [php] $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'cat' => '8', 'posts_per_page' => 8, 'paged' => $paged ); $query =…
Using the <video> tag, you can display the first image of a video but its not clickable and you can’t play the video. <video src="www.sample.com" width="300" height="150" type="video/mp4"></video> Example : Screenshot image Original videoVideo
Click every tab to get the sample options and se the screenshot image. [anton-accordion cat=”270″]