WPBeginner http://www.wpbeginner.com Beginner's Guide for WordPress Mon, 04 May 2015 12:00:53 +0000 en-US hourly 1 http://wordpress.org/?v=4.2.1 Optimizing Images with WP Smush (Pro, Cons, and Alternatives) http://www.wpbeginner.com/plugins/optimizing-images-with-wp-smush-pro-cons-and-alternatives/ http://www.wpbeginner.com/plugins/optimizing-images-with-wp-smush-pro-cons-and-alternatives/#respond Mon, 04 May 2015 12:00:53 +0000 http://www.wpbeginner.com/?p=26330 Images can significantly slow down your website which is why it is essential to save all your images optimized for web. Recently one of our users asked us about the pros and cons of using a plugin like WP Smush. In this article, we will… Read More »

To leave a comment please visit Optimizing Images with WP Smush (Pro, Cons, and Alternatives) on WPBeginner.

]]>
Images can significantly slow down your website which is why it is essential to save all your images optimized for web. Recently one of our users asked us about the pros and cons of using a plugin like WP Smush. In this article, we will discuss the pros, cons, and alternatives of WP Smush for optimizing images in WordPress.

Image Optimization in WordPress

What is WP Smush?

WP Smush is a WordPress plugin that allows you to optimize images without losing quality.

Pros of WP Smush

WP Smush is very easy to use, and you can optimize your images on the fly as you upload them to your WordPress site.

For your older images you can go to Media » WP Smush to bulk smush 50 images at a time.

Bulk smush images

For beginners, it is an easy and simple way to optimize their images and improve their site performance.

Cons of WP Smush

The performance difference is not as significant as you can get with other methods.

For example, if you are uploading a 3 MB photograph to your WordPress site, then WP Smush reduces it by 10-20% without losing quality. It is still 2.4 to 2.7MB file, which is huge.

WP Smush gives you no control on how much you can optimize an image. While it does reduce the image file size, it is not the best solution.

WP Smush Alternatives

There are several other tools and WordPress plugins that allows you to optimize your images. These tools give you more control on how you want to optimize your images. This can result into even smaller file sizes and faster page loads.

EWWW Image Optimizer

ewww Image Optimizer

EWWW Image Optimizer is a WordPress plugin that optimize your images as you upload them. You can also optimize your previously uploaded images. It also allows you to convert file format, so that you can choose a format that gives a lower image size.

For example, if you are uploading a screenshot in PNG, then converting it to JPEG may result in a much smaller file size.

Imsanity

Imsanity allows you to bulk resize large images in WordPress. Unlike the plugins mentioned above, Imsanity allows you to choose a default maximum size for your images.

Imsanity plugin allows you to bulk resize large images in WordPress

You can choose default compression for jpeg images in WordPress. The plugin can also be used to automatically convert image file formats from BMP to JPEG, or PNG to JPEG.

Adobe Photoshop

Adobe Photoshop is the industry standard in image editing. It is a little expensive, but totally worth it. It comes with a built-in Save for Web option that allows you to save images optimized for the web.

Saving images for the web in Photoshop

The best part about it is that you can choose how much you want to optimize an image. You can choose compression level for JPEG images as well as choosing number of colors in PNG files.

It will also show you the image preview and file size as you adjust these settings.

Gimp is the free alternative to Photoshop. It may not look as pretty as Photoshop, but it can optimize your images for the web.

Exporting images in Gimp

Final Thoughts

Image optimization is best when done outside of WordPress. We have written a detailed tutorial that shows you how to optimize images for WordPress.

While you can use WP Smush or one of the WP Smush alternatives, you will not get as good results as tools like Photoshop, GIMP, JPEGMini, and TinyPNG.

That’s all we hope this article helped you learn optimizing images with WP Smush and its alternatives.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

To leave a comment please visit Optimizing Images with WP Smush (Pro, Cons, and Alternatives) on WPBeginner.

]]>
http://www.wpbeginner.com/plugins/optimizing-images-with-wp-smush-pro-cons-and-alternatives/feed/ 0
How to Restore the Missing Link Title Field in WordPress 4.2 http://www.wpbeginner.com/plugins/how-to-restore-the-missing-link-title-field-in-wordpress-4-2/ http://www.wpbeginner.com/plugins/how-to-restore-the-missing-link-title-field-in-wordpress-4-2/#comments Fri, 01 May 2015 12:00:32 +0000 http://www.wpbeginner.com/?p=27684 In WordPress 4.2, the link title field in the insert link section was replaced by the link text field. This was a little disappointing for many users who believe that the link title field is useful for SEO purposes. In this article, we will show… Read More »

To leave a comment please visit How to Restore the Missing Link Title Field in WordPress 4.2 on WPBeginner.

]]>
In WordPress 4.2, the link title field in the insert link section was replaced by the link text field. This was a little disappointing for many users who believe that the link title field is useful for SEO purposes. In this article, we will show you how to add the missing link title field in WordPress 4.2 and later versions.

In WordPress 4.2 Link title field is replaced by link text

Why Was The Link Title Field Removed?

Link title provides a title for the link that could be different from the anchor text of a link. It provides users a chance to see the title of the document linked. Some users believed that it has accessibility benefits, but actually many screen readers cannot read title attribute in links by default. Link title popup cannot be seen by users on mobile and other handheld devices. These popups are also not visible to users who only use keyboard.

Link title popup displayed in Google chrome on a Mac

Many users believe that link title text also has SEO significance. It allows site owners to use actual document titles in the title, and their keywords as anchor text. You may also want to read on our article on image alt text vs image title.

Whether or not there are SEO or accessibility benefits, link title attribute is certainly harmless. Here is how you can add it back to your WordPress site.

Adding Link Title Field Back in WordPress

First thing you need to do is install and activate the Restore Link Title Field plugin. It works out of the box and there are no settings for you to configure.

Simply create a new post or edit an existing one. Select some text and click on the insert link button in the TinyMCE editor. The insert link popup will appear and you will notice the extra link title field appear there.

Link title field put back in WordPress

That’s all, we hope this article helped you add the missing link title field WordPress 4.2 and later versions. You may also want to check our guide on how to fix broken links in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

To leave a comment please visit How to Restore the Missing Link Title Field in WordPress 4.2 on WPBeginner.

]]>
http://www.wpbeginner.com/plugins/how-to-restore-the-missing-link-title-field-in-wordpress-4-2/feed/ 8
How to Limit Comment Length in WordPress http://www.wpbeginner.com/wp-tutorials/how-to-limit-comment-length-in-wordpress/ http://www.wpbeginner.com/wp-tutorials/how-to-limit-comment-length-in-wordpress/#comments Thu, 30 Apr 2015 12:48:34 +0000 http://www.wpbeginner.com/?p=27622 WordPress comments encourage discussions around your topic. However you may find that comments below a certain length or above a certain length are not very helpful. In this article, we will show you how to limit comment length in WordPress, so you can set both… Read More »

To leave a comment please visit How to Limit Comment Length in WordPress on WPBeginner.

]]>
WordPress comments encourage discussions around your topic. However you may find that comments below a certain length or above a certain length are not very helpful. In this article, we will show you how to limit comment length in WordPress, so you can set both minimum and maximum comment length limit for your WordPress site.

Why limit comment length in WordPress?

Set Comment Length Limits in WordPress

In our experience of moderating online discussions for the past decade, we have found that most helpful comments are above 60 characters and below 5000 characters in length.

When a person writes a one-word comment, it usually is not very helpful. In most cases, it is spam because the author is simply trying to earn a backlink from your site.

However when a person writes a comment above 5000 characters, its usually a rant / complaint that in most cases is not relevant to that particular article.

By setting comment length limits in WordPress, you can improve the quality of your comments.

Let’s take a look at how to control comment length in WordPress.

There are two methods to limit comment length in WordPress. The first method requires you to install a plugin. The second method uses a simple code snippet that you can add to your site.

Method 1: Limiting Comment Lenght Using a Plugin

First thing you need to do is install and activate Control Comment Length plugin. Upon activation, simply go to Settings » Control Comment Length to configure the plugin settings.

Controlling comment length in WordPress using a plugin

The plugin’s user interface is in German with English. You can set both minimum and maximum number of characters a comment can have. We recommend using 60 for minimum and 5000 for maximum character count.

You can also add messages that will be visible to users when there comments are either too short or too long. The plugin only provides these messages in the German language. You can replace it with your own message.

Method 2: Limit Comment Length Using Code Snippet

The second method is for users who don’t mind dealing with code code. We will add a filter hook to preprocess_comment. This filter is run before WordPress saves any comments to database or runs any other pre-processing on submitted comments. We will use it to check the comment length. If it is above or below the set comment length parameters, then we will show users an error message.

Simply add this code to your theme’s functions.php file or a site-specific plugin.

add_filter( 'preprocess_comment', 'wpb_preprocess_comment' );

function wpb_preprocess_comment($comment) {
    if ( strlen( $comment['comment_content'] ) > 5000 ) {
        wp_die('Comment is too long. Please keep your comment under 5000 characters.');
    }
if ( strlen( $comment['comment_content'] ) < 60 ) {
        wp_die('Comment is too short. Please use at least 60 characters.');
    }
    return $comment;
}

Comment too long error

We hope this article helped you limit comment length in WordPress. You may also want to checkout our guide on 12 vital tips and tools to combat comment spam in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

To leave a comment please visit How to Limit Comment Length in WordPress on WPBeginner.

]]>
http://www.wpbeginner.com/wp-tutorials/how-to-limit-comment-length-in-wordpress/feed/ 1