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

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

Hide WordPress Content Editor Panel Using ACF

Category: Code Snippets

Add the code snippet below into your functions.php file to hide the default WordPress content meta box. Source

Continue Reading

Yoast Breadcrumbs CSS Styles for WordPress Templates

Category: Code Snippets

The Yoast SEO plugin is great and offers a nice breadcrumbs snippet. Unfortunately, there is not an easy way to add a wrapper ID or class to the breadcrumbs for styling. Follow the steps below to change that.

Continue Reading