Category Archive for: Web

Nginx

Nginx Ignoring Server Blocks (Virtual Hosts) in Sites-Enabled

I’ve been setting up a web server for my latest project – a Node.js / Express app. All was going well – I spun up a droplet on DigitalOcean, installed NVM, Node, Git, MongoDB and deployed and configured my app. Then I decided to add Nginx into the stack to act as a reverse proxy…

Read More →

WooCommerce Logo

Display WooCommerce Product Category Description on All Category Pages

Out of the box, WooCommerce displays the product category description only on the first page of the category archive. In other words, if the category contains a bunch of products and is paginated, the category description will not be shown on page 2, 3, etc. But what if you want to display the category description…

Read More →

WordPress Logo

Pre-Load WordPress Audio Metadata Automatically

Out of the box, WordPress does not pre-load metadata or the tracks themselves when you embed an audio file in your post or page. Funny enough it does it for video embeds, but for audio files the preload attribute is set to ‘none’ by default. I am presuming they made the decision in order to…

Read More →

FunCaptcha

FunCaptcha

I have been using Google’s reCAPTCHA to get rid off spam bots in my blog’s comments section. It had generally worked very reliably and I had been happy with it. That is until recently when Google released the new ‘no CAPTCHA reCAPTCHA’. Since switching my reCAPTCHA to the new version a decent amount of spam…

Read More →

Add a CMS Block on Magento’s Cart Page

One of my client’s is running a special promotion in their Magento store and they want to add banner on the shopping cart page with the details of the promotion and to remind the customers to take advantage of it. Specifically, they want to put the banner just above the shopping cart contents table as…

Read More →

WooCommerce Logo

Remove WooCommerce Product Sorting Options

Here’s another WooCommerce trick to add to your arsenal. When you browse a product category in a WooCommerce powered store, you can sort the products. Depending on your theme, the sorting options may be displayed in a dropdown menu, as a row of buttons/links, etc. Usually the options include ‘default’ sorting, sorting by ‘popularity, ‘rating’,…

Read More →

WooCommerce Logo

Shorten WooCommerce Product Titles

WooCommerce is a free and the most popular e-commerce solution for WordPress. It is packed with features and has everything you need to run a small to mid size online shop. It is not as powerful or customizable as Magento, but it is incomparably easier to set up, host and manage. It is under active…

Read More →

Drupal

How to Fix Strict Warnings in Drupal 6 Running on PHP 5.4

If you are using Drupal 6 and your host suddenly decides to upgrade their PHP version from 5.2 to 5.3 or 5.4, your site will most likely continue to work, but it will start throwing a bunch of strict warnings, even for non-logged users. The warnings will be similar to these:

Since the errors…

Read More →

Screenshots in Chrome Render as Black

I often need to take screenshots of various webpages that I browse. For some time I was using the default Mac screenshot-taking ability, but it was not exactly convenient. The major disadvantage was that I was not able to take screenshots of whole web pages (i.e. pages spanning more than one length of a browser’s…

Read More →