Upgrading the Core WordPress Custom Menu Widget

In this article, I walk through upgrading the Custom Menu widget for WordPress to offer the ability to use the Menu Name as the Title for the menu, without the redundancy of having to retype it. I do not hack the core to make these changes. I add code to the functions.php file of a child theme. That code could also be included in a custom plugin if desired.
The good old Custom Menu widget that gets installed with the default WordPress install could use an upgrade wouldn’t you say?

Details

How to setup different admin and theme languages on your WordPress blog

Simply set the desired locale (on line 6) then add the code to your functions.php file.

Thanks to wp-snippet for the cool tip! WpRecipes.com

Details

WordPress shortcode to embed Google trends graphs

The first step is to create the shortcode. To do so, open your functions.php file and paste the code below in it:

Once you saved your functions.php file, you can now use the shortocode in your posts and pages. Here is an example of usage:

Thanks to Kevin Chard for the shortcode! WpRecipes.com

Details

How to crop uploaded images instead of scaling them

Just add the code below to your functions.php file:

Thanks to wp-snippet.com for the tip! WpRecipes.com

Details