Add password show and hide toggle using jQuery
Add view toggle for all password fields using jQuery $(‘input[type=password’).each(function(index){ $(this).addClass(‘password-‘ + index); $(this).wrap(function() { return “”; }); $(‘.password-container’).css(‘position’,’relative’); var style = { “position” : “absolute”, “right” : “7px”, “top” : “5px”, “background-color” : “#3fa457”, “color” : “white”, “font-size” : “10px”, “padding” : “5px 10px”, “border-radius” : “5px”, “cursor” : “pointer”, “text-transform” : “uppercase”, “width” […]
Read moreWordPress Custom Basic Theme
This is a custom WordPress theme. Basic theme to start you own custom theme! To view full source code, click here.
Read moreIP Restriction using .htaccess
order deny,allow deny from all allow from xxx.xxx.xxx.xxx allow from xxx.xxx.xxx.xxx File Restriction order deny,allow deny from all allow from xxx.xxx.xxx.xxx allow from xxx.xxx.xxx.xxx allow from xxx.xxx.xxx.xxx
Read moreHow to merge Woocommerce current and persistent cart?
Add the following code in your functions.php function wc_custom_user_redirect( $redirect, $user ) { if($_COOKIE[‘_redirect_url’] == ”) { if (sizeof(WC()->cart->get_cart()) != 0) { return home_url(‘checkout’); }else{ return home_url(‘my-account’); } }else{ $redirect = $_COOKIE[‘_redirect_url’]; } // declaration $final_items_key = array(); // get current cart sessions global $woocommerce; $items = $woocommerce->cart->get_cart(); $current_items = array(); foreach($items as $item => […]
Read more- « Previous Page
- 1
- …
- 4
- 5
- 6