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
More and more, I see websites with large image backgrounds that completely fill the screen size. I really like these and here’s how to achieve it simply using CSS: That’s it! Obviously you need to change the Div name and background image/path to suit but you’re good to go.
So when shopping online, you may notice that when you purchase items or register an account, most of the time you will have an option to sign up to their mailing list. By default, these are normally set to subscribe by default. Magento for some reason, won’t have this set to subscribe users by default, … Continued
Here’s a little snippet which allows you to enter specific content based on store category. This is handy if you want to show something on a page which belongs to just a specific category only. Likewise you can show either content A if on category and if not, show content on all other categories: