Category Archives: WordPress Plugins

11+ Divi Extensions And Add-on Providers To Extend Divi Further

In the past few weeks, we’ve featured posts on Elementor add-ons and Beaver Builder add-ons, which may have left you to think that we’ve forgotten about the horde of Divi fans out there. That couldn’t be further from the truth – we were just making you guys wait! But no longer, because today we’re about ... Read more

The post 11+ Divi Extensions And Add-on Providers To Extend Divi Further appeared first on Learn WordPress with WPLift.

How to Add Click to Load for GIFs in WordPress

Do you want to add a click to load GIF player on your WordPress website? Animated GIF images take longer to load which affects page speed and user experience. That’s why many popular blogging platforms don’t auto-load GIFs in their apps. In this article, we will show you how you can easily add click to load for GIFs in WordPress.

Adding click to load for Gifs in WordPress

Why Add Click to Load for GIFs in WordPress?

If you often add animated GIF images in WordPress, then you already know that they are way larger in size than regular images. This means they take longer to load which affects your website speed and performance.

Some websites deal with this by lazy loading images in WordPress. However, this still affects users experience because GIFs take longer to load as the user scrolls down.

Popular platforms like Tumblr and others use click to load GIF player to mitigate this problem. Instead of loading all frames in a GIF animation, they load just the first frame of the animation. A play button or GIF label on the image indicates that users can click to view the animated GIF.

Paused GIF example

That being said, let’s take a look at how you can add click to load button for GIFs on your WordPress website.

Adding Click to Load for GIFs in WordPress

First thing you need to do is install and activate the WP GIF Player plugin. For more details, see our step by step guide on how to install a WordPress plugin.

This plugin works out of the box, and there are no settings for it.

You can head over to the post edit screen to see it in action.

Add GIF button in WordPress post editor

On the post edit screen, you will notice the Add GIF button above the post editor. Clicking on it will bring up the media uploader popup where you can upload your GIF images similar to any other image.

Upload GIFs using the Add Gif button

Once uploaded, you need to click on the Insert image button to continue.

The WP GIF player plugin will now add the required shortcode in your WordPress post editor.

GIF shortcode in WordPress post editor

You can now save your post/page and click on the preview button to see your click to load GIFs in action.

All the GIFs embedded on your post will now have a button on top of them labeled GIF. Clicking on the button will load the animated GIF in the background and display it.

Click to play animated GIF

One downside of this plugin is that it only works for the new GIFs that upload. It will not add click to load for GIFs uploaded using the normal WordPress media uploader. This means all your previously uploaded GIFs will not have the click to load button.

We hope this article helped you learn how to add the click to load GIFs player in WordPress. You may also want to see our guide on how to fix common image issues 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.

The post How to Add Click to Load for GIFs in WordPress appeared first on WPBeginner.

WOT Cache Review: A Comprehensive WordPress Performance Plugin

You don’t need me to tell you that page speed is important. I mean – the data is there. Page load times affect everything from user experience to conversion rates and even where your site ranks in the SERPs. Page speed’s importance is one of the reasons you see all those massive, complicated posts on ... Read more

The post WOT Cache Review: A Comprehensive WordPress Performance Plugin appeared first on Learn WordPress with WPLift.

WP Review Slider Pro Review: Display Facebook, Google, And Yelp Reviews On WordPress

If you run any kind of business, reviews are essential to getting people to trust you. In a survey from BrightLocal, a whopping 85% of surveyed consumers said they trust online reviews as much as personal recommendations. And when it comes to trusting reviews, that same survey shows that consumers trust these three sources the ... Read more

The post WP Review Slider Pro Review: Display Facebook, Google, And Yelp Reviews On WordPress appeared first on Learn WordPress with WPLift.

How to Prevent Authors From Deleting Posts in WordPress

By default, users with the author user role can delete their own posts, even when these posts are already published. If you run a multi-author blog, then you may want to stop authors from deleting their own posts specially once it’s published. In this article, we will show you how to easily prevent authors from deleting their own posts in WordPress.

How to prevent authors from deleting posts in WordPress

Why Prevent Authors From Deleting Their Own Posts in WordPress

WordPress comes with a powerful user role management system. Each registered user on your WordPress website is assigned a user role, and each user role comes with different permissions.

Users with the ‘author‘ role can write posts and publish them on your website. This role is generally used by multi-author WordPress blogs.

Authors can also delete their own posts, including those already published. As a website owner, you may want to prevent authors from doing that. The easiest way to do that is by modifying the author user role and changing its permissions in WordPress.

Let’s take a look at how to easily prevent authors from deleting their own posts.

Method 1: Prevent Authors From Deleting Posts Using Plugin

This method is easier and recommended for all users.

First thing you need to do is install and activate the Capability Manager Enhanced plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Users » Capabilities page. Here you can load any WordPress user role and change its capabilities and permissions.

User roles and capabilities manager

You need to start by locating the ‘Select Role to View / Edit’ box in the right column, and then select ‘Author’ user role from the drop down menu. After that you need to click on the ‘Load’ button to load the author user role capabilities.

Load author user role

The plugin will now load the ‘Author’ user role capabilities. Under the deletion capabilities section, you need to uncheck the box next to delete and delete published options.

After that you can go to the bottom of the page and click on the save changes button to store your settings.

Now, users with the author user role will not longer be able to delete any posts on your WordPress site.

Giving Back Permissions

User role capabilities are defined explicitly. It means that once you remove a capability from a user role, it will not come back unless you explicitly define it again. Even if you uninstalled the plugin, the capability changes you made will not revert automatically.

If you want to give back authors permission to delete, then you will have to repeat the process and check the boxes next to the delete and delete published posts options.

If you want to uninstall the plugin and revert back to default WordPress capabilities, then first you need to visit Tools » Capability Manager page and click on ‘Reset to WordPress defaults’ link.

Reset user role permissions

Method 2: Manually Prevent Authors From Deleting Their Own Posts

This method requires you to add code to your WordPress files. If you haven’t done this before, then take a look at our guide on how to copy and paste code in WordPress.

You will need to add the following code to to your theme’s functions.php file or a site-specific plugin.

function wpb_change_author_role(){
	global $wp_roles;
	$wp_roles->remove_cap( 'author', 'delete_posts' );
	$wp_roles->remove_cap( 'author', 'delete_published_posts' );

}
add_action('init', 'wpb_change_author_role');

This code changes the author user role and removes their capability to delete their own posts.

If you want to revert back the permissions, then simply removing the code will not make any change. You will need to explicitly redefine the removed capabilities by replacing the first code snippet with the following code:

function wpb_change_author_role(){
	global $wp_roles;
	$wp_roles->add_cap( 'author', 'delete_posts' );
	$wp_roles->add_cap( 'author', 'delete_published_posts' );

}
add_action('init', 'wpb_change_author_role');

We hope this article helped you learn how to prevent authors from deleting their own posts in WordPress. You may also want to see our ultimate step by step WordPress security guide for beginners.

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.

The post How to Prevent Authors From Deleting Posts in WordPress appeared first on WPBeginner.

Booster for WooCommerce Review: Jetpack For Your WooCommerce Store

Ever wished that there were something like Jetpack for your WooCommerce store? Something where you could just install one plugin and then pick and choose between a ton of helpful modules rather than trying to hunt down 20 different plugins? I think you see where this is going… Booster for WooCommerce is that Jetpack for ... Read more

The post Booster for WooCommerce Review: Jetpack For Your WooCommerce Store appeared first on Learn WordPress with WPLift.

10+ Best Beaver Builder Add-ons For Even More Functionality

With its 400,000+ active installs, Beaver Builder is one of the most popular WordPress page builders that you’ll find. It also has a huge developer community, which has led to the creation of a similarly huge number of Beaver Builder add-ons. We already covered the equally vibrant Elementor add-ons community, so now it’s time to ... Read more

The post 10+ Best Beaver Builder Add-ons For Even More Functionality appeared first on Learn WordPress with WPLift.

How to Import / Export WordPress Theme Customizer Settings

Do you want to import or export theme customizer settings in WordPress? Exporting and importing theme customizer settings allow you to use the same configuration on another WordPress site. In this article, we will show you how to easily import / export WordPress theme customizer settings.

Import / export theme customizer settings in WordPress

Why Import / Export WordPress Theme Customizer Settings?

Many WordPress themes allow you to set up your website using theme customizer. It allows you to change colors, header images, background images, choose layout settings, and more.

Some paid and free themes have more settings available in customizer, while others have just a few basic options.

If you were working on customizing the theme on a local server or staging site, then wouldn’t it be nice if you could just move those settings to the live site?

This will allow you to move theme customizer settings from one website to another without having to move content and database.

That being said, let’s take a look at how to easily import / export theme customizer settings in WordPress.

How to Import / Export Theme Customizer Settings in WordPress

First thing you need to do is install and activate the Customize Export/Import plugin on both sites where you want to export/import. For more details, see our step by step guide on how to install a WordPress plugin.

First let’s export the theme customizer settings.

You need to go to Themes » Customize page on the website you want to export from.

Export/Import option in Customizer

Next, you need to click on the ‘Export/Import’ panel to view its settings and then click on the ‘Export’ button.

Export customizer settings

The plugin will now export your customizer settings and send them to your browser in a .dat file.

It can export all your theme options that are defined as theme mods or stored as options in WordPress database. This means you can export things like color settings, layout directions, header media, etc.

However, it will not export your navigation menus, site title and description, widgets, and more.

To import customizer settings, head over to the WordPress site where you want to import these settings.

You need to go to Appearance » Customize page and click on the Export/Import panel.

After that you need to click on the ‘Choose file’ button to select the file you exported earlier. You also need to check the box next to ‘Download and import image files?’ option to import header and other image files.

Import theme settings
Next, click on the ‘Import’ button to start uploading.

The plugin will now import the customizer settings from your export file.

Once it is finished, you can review your changes in the customizer and then click on the ‘Save & Publish’ button to make those changes live.

The plugin only exports theme settings saved using theme customizer and does not export site data like menus, widgets, images, and more. You will have to manually setup those changes.

We hope this article help you find an easier way to import/export theme customizer settings in WordPress. You may also want to see our checklist of things you must do when changing WordPress themes.

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.

The post How to Import / Export WordPress Theme Customizer Settings appeared first on WPBeginner.

How to Restrict Media Library Access to User’s Own Uploads in WordPress

By default, WordPress allows authors to see all images on your site’s media library. This could be problematic if you invite a lot of guest authors. In this article, we will show you how to restrict WordPress media library access to user’s own uploads.

Restrict WordPress media library access to user's own uploads

Why Restrict Media Library Access to User’s Own Uploads?

WordPress allows authors to see all files in the media library. They can also see images uploaded by an administrator, editor, or other authors.

To learn more, see our article on WordPress user roles and permissions.

Let’s say you are creating a new post to announce an upcoming product or deal. Authors and guest authors on your website will be able to see the images you upload to that article in the media library.

Your uploads will also be visible on the ‘Add Media’ popup which users see when adding images to their own articles.

For many websites, this may not be a big deal. However, if you run a multi-author website, then you may want to change this.

Let’s take a look at how to easily restrict media library access to user’s own uploads.

Method 1: Restrict Media Library Access Using a Plugin

This method is easier and is recommended for all users.

First thing you need to do is install and activate the Restrict Media Library Access plugin. For more details, see our step by step guide on how to install a WordPress plugin.

This plugin works out of the box, and there are no settings for you to configure.

Upon activation, it filters the media library query to see if the current user is an administrator or editor. If the user role does not match either of them, then it will only show user’s own uploads.

Users with the administrator or editor user role will be able to see all media uploads as usual.

Method 2: Restrict Media Library Access Manually

The first method would work for most websites as it limits media library access and allows only administrator and editor to view all media uploads.

However, if you want to add a custom user role or simply don’t want to use a plugin, then you can try this method instead. It uses the same code used by the plugin, but you will be able to modify it to meet your needs.

This method requires you to add code to your WordPress files. If you haven’t done this before, then take a look at our guide on how to copy and paste code in WordPress.

You’ll need to add the following code to your WordPress functions.php file or a site-specific plugin.

// Limit media library access
 
add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' );

function wpb_show_current_user_attachments( $query ) {
    $user_id = get_current_user_id();
    if ( $user_id && !current_user_can('activate_plugins') && !current_user_can('edit_others_posts
') ) {
        $query['author'] = $user_id;
    }
    return $query;
} 

This code uses current_user_can function to check if the user has the capability to activate plugins or edit other user’s posts. If they don’t, then it changes the query used to display media files and limit it to user’s ID.

We hope this article helped you learn how to restrict WordPress media library access to user’s own uploads. You may also want to limit authors to their own posts in WordPress admin area.

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.

The post How to Restrict Media Library Access to User’s Own Uploads in WordPress appeared first on WPBeginner.

5 Best WordPress Maintenance Mode Plugins For Your Site

If you need to make changes to the live version of your WordPress site, you probably don’t want your visitors walking in on you at an awkward moment. That’s what maintenance mode is for. It lets you throw up a user-friendly page that tells users “Hey, the site isn’t available for a bit. Please come ... Read more

The post 5 Best WordPress Maintenance Mode Plugins For Your Site appeared first on Learn WordPress with WPLift.