How to use git bisect
git bisect is a binary search which could help you find a commit that introduced a bug. If you don’t have anything to try git bisect on, feel free to clone the simple demo . Binary search is helpful when you find out you have created a bug along the way, but you don’t know when it appeared… continue reading
Rename Billing Address or Shipping Address in Woocommerce
The code below shows how to rename any of the user records. I needed only one address to be displayed to the customer, so that is why I disabled the “Shipping Address” option from Woocommerce Settings and renamed the “Billing Address” to “Delivery Address”. I thought that you guys might benefit from that as well,… continue reading
Remove WooCommerce auto-login while using New User Approve
Creating a members only e-commerce website with pre-set users and having controll over the new users approval? Using WooCommerce with its registration form with a few added fields does the job perfectly. The only issue is that when a user completes the form, WooCommerce checks for empty fields and logs the user in straight away,… continue reading
Hover image and show it next to the cursor
I will give you an example of how I have used it. I was given an image of a house plan and also pictures taken from the actual house. So, the requirement from the client was, when a user hovers over different areas (like the living room for example), the picture of the living room… continue reading
Quick link to a page on your WordPress admin bar
When you have a huge website with many sub-sub pages and there is that one important for you page that you visit quite often but to get there you need to pass by another 999 other pages, you can easily make a link on your admin bar a have a quick access which gives you… continue reading
Members only website using WooCommerce
I was building an e-commerce website using woocommerce and one of the requirements was to make the client register/login before they are allowed to see any content. I looked around to see how to achieve that and I came up with the solution below. What the code does is, it checks if the user is… continue reading
Rename WordPress Post Tab to Custom Name
Not everyone is familiar with WordPress. Furthermore, there are a lot of people who are fairly tech-savvy but have no concept of what a “post†is. As a developer, sometimes I get asked questions like: “Where are my news and how do I add new ones”. Many people struggle to relate “Posts” with their own… continue reading
Keep the element on view while scrolling with JS
I know you can do this with fixed position in CSS but I really liked it..That is why I have added it to my portfolio. When you scroll down, that element is just chasing you up and down very smoothly with a bit of a delay. Sweet! The code is very simple too. All you… continue reading
Scroll Detection Example Part 2 – Element on view
I use this kind of ‘detecting’ to do my animation. I must mention that I have developed a class called ‘fadeInDown’ in my css before I have added this code, which contains the actual movement of the element. In my example, it fades in and drops down on full opacity. The code below only detects… continue reading
Scroll Detection Example
This wouldn’t be called a tutorial, its an example of how to detect when you reach the bottom of the document (page). This example could be used to call a function when the user scrolls and reaches an element. Please, check my second example. It works simply by adding the scroll top and window height,… continue reading
Element on screen while scrolling using JQuery
There are many plugins which are doing this function, but I dont always think we need to attach a whole file when we can write 10 lines of code. This time, the feature I am going to discuss is how to keep an element in view while scrolling down. I like to use it in… continue reading
Disable Update and Maintenance Notifications WordPress
For all the WordPress clients, it is truly irritating when WordPress update notification is shown on the dashboard if there are any update accessible for WordPress. The notification won’t clear until the WordPress is moved up to most recent version. Likewise the upgrade notification for plugins and themes is shown on the WordPress dashboard, plugins… continue reading
How to change wp-content folder name in WordPress
wp-content folder is where all themes and plugins are contained, also known as ‘wordpress extensions’. Those are the addons that make your WordPress unique from all others. Installing third party extensions can bring risks, this is why taking extra actions towards making your website more secure is very important. The best advice would be not… continue reading