How to create a custom WordPress dashboard widget

example dashboard widget

Want to create your own dashboard widget that appears when you log in to the WordPress dashboard? You can do it in a few lines of code, once you have the widget setup, you can then concentrate on writing the functionality for the contents of the widget. What are dashboard widgets? Dashboard widgets are shown …

Read More

How to amend the big image size threshold in WordPress

media library upload

If you’ve ever tried to upload an image in WordPress that has large dimensions, you may have noticed that the resulting file has smaller dimensions than the original image. This is because WordPress has a threshold for the maximum image dimensions, and if your image is higher than that threshold, it will get scaled. You …

Read More

How to quickly see options data stored in WordPress

wordpress options

In this blog post, I’ll share a quick and easy way to see option data in WordPress without needing to access the database via a database management tool. This is useful if you are developing functionality that stores data in options and you want to quickly review what the current stored value is. What are …

Read More

Why you should (maybe) set cache lifespan to 10 hours or less on WordPress

wordpress cache 10 hours

There are numerous caching plugins available for WordPress, in addition to caching mechanisms provided by your web host, for the latter you might not even be aware caching is enabled. These can help speed up your website load times, however if you are using caching of any form, it can open up the potential to …

Read More

How to add code snippets in WordPress

add code snippets wordpress

When researching how to customise your WordPress website from tutorials online, you’ll often come across recommendations to add a code snippet to your website. There a few different options of how to add code snippets, which I’ll highlight in this blog post. Read on to find out how to add code snippets in WordPress. What …

Read More

How to add a custom body class in WordPress

add body class

For frontend styling, it’s often useful to target elements based on a class of the <body> element. Learn how to add your own custom body class, or remove existing ones in this blog post. What are body classes? Body classes are the CSS class names added to the <body> HTML element, these classes can then …

Read More