Restrict Certain File Mime Types in WordPress

Category: Common Questions

I recently heard from a client saying their blog was loading very slowly. The issue was caused from a high resolution image in .tiff format which is generally used for print. In order to block these file types add the following plugin to your mu-plugins folder. Source <?php /* prevent uploading of .tif files. https://wordpress.stackexchange.com/questions/44777/upload-mimes-filter-has-no-effect […]

Continue Reading

Aw Snap! Error Google Chrome 78 Fix

Category: Articles

The most recent Google Chrome update 78 is causing some users to experience an Aw Snap! error. You may notice that it opens but you are unable to access the settings. Some have mentioned it might be caused by Symantec Endpoint. This error will probably be corrected in a future update but in the mean […]

Continue Reading

How to Add a Featured Tag with Text Over an Image

Category: Tutorials

In this tutorial I will show you how to place a featured tag over an image using CSS3 ::before pseudo elements. A common use case for this is eCommerce where you might want to visually show a product is featured, on sale, or out of stock. Since your products are displayed dynamically using a database, […]

Continue Reading

Check Page Level Depth If Condition in WordPress

Category: Code Snippets

The code snippet below is handy when you are trying to check if the current page is a parent or a child in a WordPress theme. You can then use the conditional to output different code depending on the page depth it is <?php // gets page depth global $wp_query; $object = $wp_query->get_queried_object(); $parent_id = […]

Continue Reading