Verman Babu
How to Change WP Default Sub Menu Class
WordPress sub menu has always a default class. Default class name is “sub-menu”. In this tutorial, we are going to see how to Change default sub menu class in WordPress. To change it to custom class add given below code to functions.php add it to functions.php function change_submenu_class($menu) { $menu = preg_replace(‘/ class=”sub-menu”/’,’/ class=”your menu … Read more
How to Add Class on UL in WordPress Nav Menu
Do you want to add css class to wp nav menu to change its appearance. Do you want to change wp nav menu link style. In this tutorial, we are going to see how to add CSS Classes to menu items in WordPress. With following these steps you can easily add class to ul in … Read more
How To Add Custom Icon To WordPress Nav Menu
In this tutorial we will discuss how to add custom icon to WordPress nav menu. You have seen menu icon in many website specially in wordpress blog. I will show you how set custom icon in WordPress nav menu item step by step. Let’s start. Steps: 1. Add this code in your theme file functions.php … Read more
how to add quantity box on product list page in opencart
1. Modify the add to cart function in Catalog/view/javascript/common.js function addToCart(product_id, el) { if ($(el).parent().children(‘input[name=”quantity”]’).val() != ‘undefined’) { quantity = $(el).parent().children(‘input[name=”quantity”]’).val(); } else { quantity = 1; } $.ajax({ url: ‘index.php?route=checkout/cart/update’, type: ‘post’, data: ‘product_id=’ + product_id + ‘&quantity=’ + quantity, 2. modify the product or category list page template file Change this … Read more