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'];
html5shiv.googlecode.com/svn/trunk/html5.js or simply copy the code below and paste it into your header.php <!–[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]–>
Don’t panic, this is ads from revenuehits.com, normal to open new tab This site is already earning through Google AdSense and I get small amount of US dollar to those people who visited my site and click ads on my site. I have check the uwealthmktg.com captcha and it has onClick ads so I decided…
var keys = [37, 38, 39, 40]; function preventDefault(e) { e = e || window.event; if (e.preventDefault) e.preventDefault(); e.returnValue = false; } function keydown(e) { for (var i = keys.length; i–;) { if (e.keyCode === keys[i]) { preventDefault(e); return; } } } function wheel(e) { preventDefault(e); } function disable_scroll() { if (window.addEventListener) { window.addEventListener('DOMMouseScroll', wheel,…
function tml_title( $title, $action ) { if ( is_user_logged_in() ) { $user = wp_get_current_user; if ( 'profile' == $action ) $title = 'Your Profile'; else $title = sprintf( 'Welcome, %s', $user->display_name ); } else { switch ( $action ) { case 'register' : $title = 'Sign Up'; break; case 'lostpassword': case 'retrievepassword': case 'resetpass': case…
First is you must have the browser.php in your current themes. If not, click here and create a file named browser.php in your current themes. Copy the codes below and place it into your function.php file. add_filter('body_class','browser_name_class'); function browser_name_class($classes) { $browser = new Browser(); $browser_detect_replace = str_replace( ' ', '-', $browser->getBrowser('browser_name:Browser:private') ); $browser_name = strtolower(…
How to check if there is an ajax running on your page? Here’s a code below that can help you figure it out. jQuery( document ).ready(function($) { $(document).ajaxStart( function() { console.log('ajax true' ); }).ajaxStop( function() { console.log('ajax false' ); }); });