This little snippet removes the admin bar permanently from all users while logged in and viewing the website from the front-end. Personally, I never use it and always turn it off with this little snippet.
I love website conversion and find myself becoming more and more intrigued with attempting to master this fine art. It blends design, psychology, user experience, development and combines a deep understanding of how people actually use the internet and how they read webpages. Overall, it’s pretty interesting stuff. During the course of my studies, I’ve … Continued
Hackers and bots are more prevalent than ever. It is vitally important you protect your WordPress install from every type of potential attack. One simple way hackers attempt to get into your install is via the login form. Most people stick with ‘admin’ as the default username for their admin account. This is bad. Already, … Continued
This snippet wraps around your homepage-specific code in order to only display when on the homepage of your store. The ‘home’ identifier may be different for your site so amend as necessary.
So one of my new personal websites sells virtual products where customers buy just one product at a time. I don’t need quantities and nor do I want quantity boxes on the product page or the checkout, there just no need for it. So there could be a way to bring in some jQuery into … Continued
If you want to display some latest products if your Woocommerce store in another template file, add this to achieve just that!
Depending on the type of products you are selling via a Woocommerce store, sometimes you don’t need the billing and shipping address details on the Woocommerce checkout page. Adding this little snippet to your functions.php file, you can deregister them from loading easily:
I created a members dashboard area on a site recently and needed a custom login page which used the Woocommerce login form to log users into the site. If successful, I wanted them to be redirected to another front-end page. This handy little snippet goes into your functions.php file and allows you to redirect pretty … Continued
Here’s a little snippet which remove the orderby dropdown on product archive pages. Add this to your functions.php file:
I needed to target a particular parent menu and add an additional class to the sub-menu ul element. As WordPress builds the menu, you won’t find it in any theme files. Also, I didn’t want to add this globally as the site I was working on was responsive and I shared the same class on … Continued