Skip to main content

Fixing empty or blank searches from displaying all posts in WordPress

After creating my own WordPress theme, I needed a search page. I created “search.php” (as that is the template that WordPress recognises to display search results). After testing, I noticed if I hit the submit button without entering a search query, all of the posts on my website will display. Obviously, this isn’t good and after looking online have found a fix to show you.

Read More

Advanced Custom Fields and Bootstrap Tabs

Advanced Custom Fields (ACF) for WordPress makes it really easy for a you to add customisations to a website. I had a client wanting to use bootstrap tabs on their website and also have the ability to add or remove new tabs and content through their editor. I used the ACF repeater field to do this.
Read More

Make invoice number and order number same on Woocommerce PDF Invoices & Packing Slips

I absolutely love Woocommerce PDF Invoice & Packing Slips, not only does it fulfill all of my needs without purchasing an expensive plugin from WooThemes, it’s consistently updated by the developer and he offers quality support. I don’t know how he does this for free, he does sell templates for the PDF’s so support him if you can.

Read More

How to sort posts alphabetically in WordPress

Sorting posts in WordPress is pretty easy. Though, looking on search, there’s so many different ways to do it, including the use of plugins.

I try my best to stay away from using plugins as much as possible (I don’t like plugin bloat) – so what I do is try and code as much as I can into the template I’m creating. I may want to use a certain type of sorting order for one archive of posts, but for another archive I might want a different type of sorting order.

Read More

psd interior

10 Awesome Office Interior PSD Mockups to make your business look bigger

Sometimes, being a really small business can scare away customers. With the help of photoshop and some easy to edit PSD office mockup files, you can transform your small business into a larger more reputable business, giving your customers the perception you’re bigger and better.

Read More

hacked website sending emails on cpanel server

Hacked website sending e-mails automatically on cPanel server

Last week, I noticed my dedicated server (exim) was sending huge amounts of e-mails. In cPanel > E-mail > Mail Queue Manager, there were over 6000 e-mails in the exim queue to be sent from a specific e-mail address of an account on my server.

I currently run a dedicated server that hosts about 250 web design clients, so keeping a constant eye on every account is impossible, though, I check the mail queue and server resource usage quite regularly to ensure that nothing fishy is going on.

Read More

How to make your WordPress website SSL without a plugin

Making your WordPress website work with SSL is quite easy. There are a few plugins available online that work with WordPress though many of them have been found to slow your website down. I’ve found it much fast to directly input the code into the .htaccess file.

Assuming you’re using cPanel, log in and edit your “.htaccess” file. If you can’t see your “.htaccess” file, when you click on “File Manager”, make sure you that show all file. Once you’ve found it, edit it and replace the existing rules with these ones.

Read More

remove jquery select woocommerce

Disable WooCommerce state select field from using Select2 JQuery

So I set up an e-commerce site for a client using WordPress and WooCommerce and used a theme called Flatsome. It’s a pretty cool theme, probably one of the best themes on WooCommerce. Mind you, I don’t really like using themes, I think most themes are too bloated, have WAY too many settings and also restrict you with their shortcodes should you decide to move to a new theme, anyway – that argument is for another day.

Basically, my client was having problems with a lot of her customers not being able to select the state dropdown menu on their iPads and iPhones – so there may be some sort of issue on that end, however, the easiest fix of them all was to just disable the fancy Select2 coding so that the drop down is just a standard drop down menu.

Read More

Remove all WooCommerce Sale Prices at once

One of my clients runs a WooCommerce website on WordPress and has 450 products on it, he went in and added a sale price for every single product, so basically every product now is at sale price, not regular price. He now wants to remove all of the sale prices completely and return the website to how it was before.

The problem with removing sale prices is there’s really no fast way of completely removing them, especially if you’ve set up a schedule, you need to go into every product individually and remove them so that it returns to the normal prices. I figured out a way to do it fast, using phpMyAdmin and a free plugin.

Read More

Show loading spinner whilst WooCommerce order is processing

WooCommerce is a fantastic plugin for WordPress, it allows anyone to sell their own products quickly and is reasonably easy to set up with a theme, or a bit more complex when you’re creating your own theme.

I was setting up a client’s website the other day and noticed that WooCommerce doesn’t have (unless I’m mistaken) a loader/spinner animation show when you click on the “place order” button.

On the current website i’m working on, when “place order” is clicked, the screen changes to a lighter opacity but nothing else happens until obviously the confirmation screen appears. With some websites, communicating between your website and the credit card processor may take longer than anticipated, your customer may think the website has frozen and be tempted to hit the back button which could affect the order.

Read More