How to Add Hreflang Tags in WordPress

Do you want to add hreflang tags in your WordPress posts and pages? If you publish content in multiple languages or for different regions, then hreflang tag helps you improve SEO for those regions and languages. In this article, we will show you how to… Read More »

The post How to Add Hreflang Tags in WordPress appeared first on WPBeginner.

Do you want to add hreflang tags in your WordPress posts and pages? If you publish content in multiple languages or for different regions, then hreflang tag helps you improve SEO for those regions and languages. In this article, we will show you how to easily add hreflang tags in WordPress without writing a single line of code.

How to add hreflang tags in WordPress

What is hreflang tag?

Hreflang tag allows you to tell search engines which page to show for a particular region and language. You can also use it to define other variations of the same content in different languages.

Here is how a hreflang tag implementation looks like in plain HTML.


<link rel="alternate" href="example.com" hreflang="en-us" />
<link rel="alternate" href="example.com/fr/" hreflang="fr-fr" />
<link rel="alternate" href="example.com/pt/" hreflang="pt-pt" />

The hreflang tag is a combination of the language code and the region code. For example, en-us for English and the United States, fr-fr for French and France, and so on.

WordPress is available in more than 60 languages, and you can use WordPress in your own language.

Many WordPress site owners target users in different regions and languages. Some do that by creating multilingual websites, while others do that by offering some content in other languages.

Search engines can easily detect the language of a page and automatically match it to the language settings on user’s browser. However, your pages may still be competing with each other in the search results which may affect your site’s SEO.

You can implement hreflang tags to fix that. Let’s see how to easily add hreflang tags in WordPress.

Method 1: Add hreflang Tag in WordPress Using a Multilingual Plugin

The best approach to building a multilingual WordPress site is by using a multilingual plugin. A multilingual WordPress plugin allows you to easily create and manage content in multiple languages using the same WordPress core software.

These plugins will automatically take care of all technical things such as the hreflang tag, so you can focus on creating content.

We recommend using Polylang. It is a free WordPress plugin and comes with a very powerful and easy to use interface to manage multilingual content. For detailed instructions, see our guide on how to how to easily create a multilingual WordPress site.

Adding languages in Polylang

Another popular option is WPML. It is a premium WordPress plugin with an easy to use interface to create multilingual content on your website. For step by step instructions, see our guide on how to create a multilingual WordPress site with WPML.

After you have created some posts or pages in multiple languages, you need to visit them in a new browser window. Right click and select ‘View Page Source’ from your browser menu.

This will open the source code of the post or page. Now you need to look for hreflang tag to verify that it is working properly. You can also use CTRL+F (Command+F) keys to find the hreflang tag.

Method 2: Add Hreflang Tags in WordPress Without Using a Multilingual Plugin

This method is for users who are not using a multilingual plugin to manage translations on their websites.

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

Upon activation, the plugin will add a new menu item labeled HREFLANG in your WordPress admin menu. Clicking on it will take you to the plugin’s settings page.

hreflang tag plugin settings

Select the post types where you’d like to enable the plugin and then click on the save changes button to save your settings.

Next, you need to edit the post or page where you want to add the hreflang tag. On the post edit screen, you will notice a new metabox labeled HREFLANG tags.

Adding hreflang tags using a plugin

First you need to add the URL of the post that you are currently editing and then select its language. After that you need to click on the plus button to add URLs of other variations of the post and their language.

Once you are done, click on save or update button to save your post.

You can now visit your post in a browser window and view its source code. You will see the hreflang tag added to your post.

We hope this article helped you learn how to easily add hreflang tag to your WordPress site. You may also want to see our step by step WordPress SEO 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 Add Hreflang Tags in WordPress appeared first on WPBeginner.

How to Fix Render-Blocking JavaScript and CSS in WordPress

Do you want to eliminate render-blocking JavaScript and CSS in WordPress? If you test your website on Google PageSpeed insights, then you will likely see a suggestion to eliminate render-blocking scrips and CSS. In this article, we will show you how to easily fix render… Read More »

The post How to Fix Render-Blocking JavaScript and CSS in WordPress appeared first on WPBeginner.

Do you want to eliminate render-blocking JavaScript and CSS in WordPress? If you test your website on Google PageSpeed insights, then you will likely see a suggestion to eliminate render-blocking scrips and CSS. In this article, we will show you how to easily fix render blocking JavaScript and CSS in WordPress to improve your Google PageSpeed score.

How to fix render blocking JavaScript and CSS in WordPress

What is Render-Blocking JavaScript and CSS?

Every WordPress site has a theme and plugins that add JavaScript and CSS files to the front-end of your website. These scripts can increase your site’s page load time, and they can also block rendering of the page.

A user’s browser will have to load those scripts and CSS before loading rest of the HTML on the page. This means that users on a slower connection will have to wait a few milliseconds more to see the page.

These scripts and stylesheets are referred to as render-blocking JavaScript and CSS.

Website owners who are trying to achieve the Google PageSpeed score of 100 will need to fix this issue to attain that perfect score.

What is Google PageSpeed Score?

Google PageSpeed Insights is an online tool created by Google to help website owners optimize and test their websites. This tool tests your website against Google’s guidelines for speed and offers suggestions to improve your site’s page load time.

It shows you a score based on the number of rules that your site passes. Most websites get somewhere between 50-70. However, some website owners feel compelled to achieve 100 (the highest a page can score).

Do You Really Need the Perfect “100” Google PageSpeed Score?

The purpose of Google PageSpeed insights is to provide you guidelines to improve speed and performance of your website. You are not required to follow these rules strictly.

Remember that speed is only one of the many SEO metrics that help Google determine how to rank your website. The reason speed is so important is because it improves user experience on your site.

A better user experience requires a lot more than just speed. You also need to offer useful information, better user interface, and engaging content with text, images, and videos.

Your goal should be to create a fast website that offers great user experience.

We recently redesigned WPBeginner, and we kept our focus on speed as well as improving user experience.

We recommend that you use Google Pagespeed rules as suggestions, and if you can implement them easily without ruining user experience, then that’s great. Otherwise, you should strive to do as much as you can and then don’t worry about the rest.

Having said that, let’s take a look at what you can do to fix render blocking JavaScript and CSS in WordPress.

We will cover two methods that will fix the render blocking JavaScript and CSS in WordPress. You can choose the one that works best for your website.

1. Fix Render Blocking Scripts and CSS with Autoptimize

This method is simpler and recommended for most users.

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

Upon activation, you need to visit the Settings » Autoptimize page to configure the plugin settings.

Autoptimize Settings

You can start by checking the box next to JavaScript Options and CSS Options and then click on the save changes button.

You can now test your website using PageSpeed tool. If there are still render blocking scripts, then you need to come back to the plugin’s settings page and click on ‘Show Advanced Settings’ button at the top.

Advanced JavaScript Options

Here you can allow plugin to include inline JS and remove scripts that are excluded by default like seal.js or jquery.js.

Next, scroll down to CSS option and allow plugin to aggregate inline CSS.

Click on the ‘Save changes and Empty Cache’ button to save your changes and empty plugin cache.

Once you are done, go ahead and check your website again with the PageSpeed tool.

Make sure that you thoroughly test your website to see that nothing is broken by optimizing your JavaScripts or CSS.

How does it work?

Autoptimize aggregates all enqueued JavaScript and CSS. After that, it creates minified CSS and JavaScripts files and serves cached copies to your website as async or deferred.

This allows you to fix the render blocking scripts and styles issue. However, please keep in mind that it can also affect the performance or appearance of your website.

2. Fix Render Blocking JavaScript using W3 Total Cache

This method requires a little more work and is recommended for users already using W3 Total Cache plugin on their website.

First you will need to install and activate the W3 Total Cache plugin. If you need help, then see our guide on how to install and setup W3 Total Cache for Beginners.

Next, you need to visit Performance » General Settings page and scroll down to Minify section.

W3 Total Cache enable minify

First you need to check ‘Enable’ next to Minify option and then select ‘Manual’ for minify mode option.

Click on the save all settings button to store your settings.

Next, you need to add the scripts and CSS that you want to minify.

You can get the URLs of all the scripts and stylesheets that are render blocking from Google PageSpeed Insights tool.

Under the suggestions where it says: ‘Eliminate render-blocking JavaScript and CSS in above-the-fold content’, click on ‘Show how to fix’. It will show you the list of scripts and stylesheets.

Get JavaScript and Stylesheet URLs from Google PageSpeed tool

Take your mouse over to a script and it will show you the full URL. You can select this URL and then use your keyboard’s CTRL+C (Command+C on Mac) keys to copy the URL.

Now head over to your WordPress admin area and go to Performance » Minify page.

First you need to add JavaScript files that you want to be minified. Scroll down to JS section and then under the ‘Operations in areas’ set the embed type to ‘Non-blocking async’ for the <head> section.

Add scripts to minify

Next, you need to click on the ‘Add script’ button and then start adding script URLs that you copied from Google PageSpeed tool.

Once you are done, scroll down to CSS section and then click on the ‘Add a stylesheet’ button. Now start adding stylesheet URLs you copied from Google PageSpeed tool.

Add stylesheets to minify

Now click on the ‘Save settings and purge cache’ button to store your settings.

Visit the Google PageSpeed tool and test your website again.

Make sure that you also test your website thoroughly to see that everything is working fine.

Troubleshooting

Depending on how the plugins and your WordPress themes uses JavaScript and CSS, it could be quite challenging to completely fix all render blocking JavaScript and CSS issues.

While the above tools can help, your plugins may need certain scripts at a different priority level to work properly. In that case, the above solutions can break your plugins or they could behave unexpectedly.

Google may still show you certain issues like optimizing CSS delivery for above the fold content. Autoptimize allows you to fix that by manually adding inline CSS required to display the above fold area of your theme.

However, it could be quite difficult to find out what CSS code you will need to display above the fold content.

That’s all, we hope this article helped you learn how to fix render blocking JavaScript and CSS in WordPress. You may also want to see our ultimate guide boost WordPress speed and performance 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 Fix Render-Blocking JavaScript and CSS in WordPress appeared first on WPBeginner.

How to Add an Author’s Photo in WordPress

Do you want to add an author’s photo in WordPress? By default, most WordPress themes display an author’s gravatar image as their profile photo. But what if you wanted to replace the gravatar image with an actual author photo? In this article, we will show… Read More »

The post How to Add an Author’s Photo in WordPress appeared first on WPBeginner.

Do you want to add an author’s photo in WordPress? By default, most WordPress themes display an author’s gravatar image as their profile photo. But what if you wanted to replace the gravatar image with an actual author photo? In this article, we will show you how to easily add an author’s photo in WordPress.

How to Add Author's Photo in WordPress

When Do You Need Custom Author Photo in WordPress?

If you run a single author WordPress site, then you can just use an image widget to add your photo and an about page with more information.

On the other hand, if you run a multi-author WordPress site, then you may need to add an author bio box at the end of your articles. Author bio box typically shows an author’s profile photo, brief bio, and links to their website or social profiles.

By default, most WordPress themes display an author’s gravatar image as their author photo. However, sometimes an author may not have a gravatar image or they may not want to use it as an author image on your website.

Having said that, let’s see how to easily add author photo in WordPress and allow authors to upload a photo to their profile.

Adding an Author Photo in WordPress

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

Upon activation, the plugin will add a new menu item labeled Avatars in your WordPress admin bar. Clicking on it will take you to the plugin’s settings page.

WP User Avatar settings

Here you can choose how you want to display the user avatars on your WordPress website.

By default, this plugin allows users with at least an Author role to upload their own profile photo. You can change that and allow contributors and subscribers as well.

It also allows you to completely disable Gravatar on your WordPress site and only use local avatars.

Once you are comfortable with the settings, go ahead and click on save changes button to save them.

Now you can go to Users page and click on the edit button below a username.

On the edit user screen, scroll down to the bottom, and you will see the Avatar section. You can click on the ‘Choose Image’ button to upload the user photo.

upload author photo

Don’t forget to click on the ‘Update profile’ button to save your changes.

Similarly, users on your WordPress site will be able to upload their photos by editing their user profile.

User profile photo

Now you can visit your website to see the plugin in action.

It will start showing local avatar as author photo for the articles. If a user does not add an author photo, then it will show their gravatar image.

Author photo with bio in WordPress

If a user doesn’t have an author photo or gravatar image, then it will fallback to the default gravatar image. You can add a branded custom gravatar image to be used as fallback image.

We hope this article helped you learn how to add an author’s photo in WordPress. You may also want to see our guide on how to allow users to submit posts to your WordPress site.

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 an Author’s Photo in WordPress appeared first on WPBeginner.

28 Most Frequently Asked Questions by WordPress Beginners

WPBeginner has been helping WordPress beginners since 2009. Over these years, we have received tens of thousands of questions. We have noticed that some questions are asked more frequently by users. In this article, we will answer some of the most frequently asked questions by… Read More »

The post 28 Most Frequently Asked Questions by WordPress Beginners appeared first on WPBeginner.

WPBeginner has been helping WordPress beginners since 2009. Over these years, we have received tens of thousands of questions. We have noticed that some questions are asked more frequently by users. In this article, we will answer some of the most frequently asked questions by WordPress beginners.

Most frequently asked questions by WordPress users

Since this is a lengthy article, we have added a table of contents for easier navigation.

Table of Contents

Getting Started

WordPress Basics

Once You’re Up and Running

Troubleshooting

1. How do I start a WordPress blog?

Getting started

First you need to make sure that you are choosing the right blogging platform for your website. Self-hosted WordPress.org site is the best platform in our opinion. It offers you the flexibility and freedom to grow your blog without any limitations.

Next, you will need to sign up for a WordPress hosting account. All websites on the internet needs hosting. This will be your website’s home on the internet.

You will also need a domain name. This will be your website’s address on the internet that your users will type in their browsers to reach your site (e.g. wpbeginner.com or google.com).

We recommend using either Bluehost. They are one of the largest hosting companies in the world and an official WordPress hosting partner.

Once you have signed up for a hosting account, you can go ahead and install WordPress. For complete step by step instructions, see our guide on how to start a WordPress blog, and you will be up and running in minutes.

2. How much does it cost to build a WordPress website?

While WordPress itself is free, you will need a web hosting account and a domain name to use it on a live website. These will cost you money.

You can get started by signing up for a shared hosting account. After that you can use a free WordPress theme with essential free plugins to get started. This would cost you roughly around $100/year.

As your website grows, you will need more features, tools, and services to better serve your users. Some of these services and tools will cost additional money. Your goal will be to keep the costs down while offering the best experience for your users.

We have made a complete breakdown for you to look at. It shows you how much does it really cost to build a WordPress site for DIY users.

3. How do I make money from my WordPress site?

Monetizing your WordPress site

There are countless ways to make money from your WordPress site. In fact, website owners are coming up with new ways to make money online from their websites every day. You can run advertisements, sell products, recommend affiliate products, teach courses, sell paid content, and the list goes on.

Check out our list of 25 legit ways to make money online blogging with WordPress to explore more options.

4. Can I use WordPress without using any blog features?

Turn off blog features in WordPress

Yes, absolutely. Many WordPress websites are business sites that don’t use any blog related features at all. WordPress started out as a blogging platform, but now it is a full-fledged CMS and an application framework.

You can create a website using only the pages. If you want to completely turn off blogging, then check out our tutorial on how to easily disable blog features in WordPress.

5. How do I install plugins in WordPress?

WordPress plugins

Plugins are like apps for your WordPress site. They allow you to add additional features like contact forms, photo galleries, etc to your website.

To install plugins, first you need to visit Plugins » Add New page in the WordPress admin area. Next, you need to search for the plugin you are looking for by typing in keywords (like photo gallery, contact form, etc).

If you know the name of the plugin that you want to install, then you can just enter the name of the plugin.

Searching for a WordPress plugin

In the search results, click on the install button next to the plugin that you want to install and WordPress will install it for you.

Next, you will need to click on the activate button to start using the plugin.

You can also install plugins sold by third party developers. Those plugins come as a zip file.

Simply head over to Plugins » Add New page and then click on the upload button.

Upload plugin zip file

Next, you need to click on the choose file button to select the plugin zip file from your computer and then click on ‘Install now’.

For more detailed instructions, see our step by step guide on how to install a WordPress plugin.

6. Why I don’t see the Plugins menu in my admin panel?

Can't see plugins in my WordPress admin area

Most likely you are using WordPress.com, which is a blog hosting service created by WordPress co-founder Matt Mullenweg.

It is a solid blog hosting service, but there are some limitations to using WordPress.com. One of them is not able to install plugins.

See our article on the difference between WordPress.com and WordPress.org for more details.

If you want to move your WordPress.com blog to WordPress.org, then follow the instructions in our step by step tutorial on how to move your blog from WordPress.com to WordPress.org.

7. Which WordPress plugins I should install on my website?

Which plugins to install?

At the time of writing this article, there were more than 49,000 plugins available in the free WordPress plugins directory alone. Not all of them are great, which leads to the question that which WordPress plugins should you install on your website?

We have compiled a list of essential WordPress plugins that you should install on your website. For more plugin recommendations, you can check out our WordPress plugins section.

8. How to select a theme for my WordPress site?

Selecting a theme for WordPress

Themes control the appearance of your WordPress site. There are thousands of free and paid WordPress themes available for every kind of website.

First, you will need to decide whether you want to use the free or premium theme. Premium WordPress themes come with support and guaranteed updates.

This does not mean that free WordPress themes are low quality. In fact, free WordPress themes that are available on WordPress.org theme directory go through a very rigorous review process.

For more details see our article on pros and cons of both free vs premium WordPress themes.

You will also need to consider your audience, your website’s topics, compatibility with plugins, and language requirements.

We have compiled a list of things you should consider when selecting the perfect WordPress theme for your website.

For theme recommendations check out our showcase section where we regularly publish our expert pick of the best WordPress themes.

Here are some of the our recent expert selections:

9. How do I install a WordPress theme?

After you have selected a theme for your website, you will need to install it.

Head over to Appearance » Themes page in WordPress admin area and then click on the ‘Add New’ button on the top.

Add new theme

On the next page, you can search for a free theme from WordPress.org theme directory. If you already have your theme as a zip file, then click on the upload button to select the zip file and install it.

Search or upload a theme file

For more detailed instructions, see our step by step guide on how to install a WordPress theme for beginners.

10. How to add a blog post or page in WordPress?

By default, WordPress comes with two default content types. They are called posts and pages.

Posts are part of a blog and are displayed in a reverse chronological order. Pages are static and not part of a blog.

See our guide on the difference between posts and pages.

To add a new blog post, head over to Posts » Add New page.

Add new blog post

To create a new page, you need to visit Pages » Add New page.

Both page’s and post’s edit screens look similar with some minor differences.

For detailed instructions, see our guide on how to add a new blog post in WordPress while utilizing all the features.

11. How to embed videos in WordPress?

You can directly upload videos to your WordPress site, but we always recommend against that. For more discussion on this topic, see our article on why you should never upload a video to WordPress.

Instead, you should use a video hosting service like YouTube or Vimeo. Simply upload your video to one of these services and then copy your video URL.

Come back to your WordPress site and simply paste the video URL in the post editor. WordPress will automatically fetch the embed code and display your video.

Embed videos in WordPress

12. How do I show photos in rows and columns in WordPress?

Photos in rows and columns

By default, when you add multiple images to a WordPress post or page, they would appear right next to each other or on top of each other.

This doesn’t look so great. You can easily solve this problem by showing your photos in a grid layout with rows and columns.

For complete step by step instructions see our guide on how to display WordPress photos in rows and columns.

13. How do I add a navigation menu in WordPress?

Navigation menu on a WordPress site

Navigation menu is a set of links that take users to different sections of your website. It usually appears on top of a website.

WordPress comes with an easy navigation menu management system. It allows you to easily create menus by adding links and displaying them on locations defined by your theme.

For complete step by step instructions, see our beginner’s guide on how to add navigation menu in WordPress.

14. How do I use categories and tags in WordPress?

Category vs Tag

Categories and tags allow you to sort your content into topics. This makes it easier for you to organize content and for your users to find it.

Categories are for broader topics. You can think of them as different cabinets in a file room. They can also have sub-categories. For example, on a news website you can have categories for national news, international news, entertainment, and op-eds.

On the other hand, tags are used for more specific topics discussed in an article. Think of them as an index of words that describe an article.

For more detailed discussion on the topic, check out our guide on categories vs tags and SEO best practices for sorting your content.

15. How do I add a contact form in WordPress?

A contact form allows visitors to contact you directly from your website by filling out a simple form.

By default, WordPress does not come with a built-in contact form but there are many contact form plugins which allow you to easily create and add forms to your website.

For detailed step by step instructions see our guide on how to create a contact form in WordPress.

16. How do I start an online store with WordPress?

WordPress eCommerce

WordPress powers millions of ecommerce websites and online stores all over the world. Using one of the ecommerce plugins for WordPress, you can easily add an online store to your WordPress site and sell both digital and physical goods.

We have created a step by step tutorial on how to start an online store to help you get started.

17. How do I improve SEO in WordPress?

WordPress SEO

SEO or search engine optimization is a set of best practices that allow you to get more traffic to your website from search engines.

WordPress is quite SEO friendly out of the box, but there is so much more that you can do to make your website even more search engine friendly.

We have created an ultimate step by step WordPress SEO guide for beginners to improve your SEO like a pro.

18. How to deal with comment spam in WordPress?

Comment spam is one of the annoying things that you will come across as your website grows. However, there are tools and tips that you can use to effectively reduce comment spam on your website.

First, you will need to install and activate the Akismet plugin. Akismet monitors your WordPress comments for spam and automatically blocks spam comments. See our Akismet 101 guide to learn more about Akismet and why you should start using it right away.

Next, you need to enable comment moderation on your WordPress site. This will ensure that all comments are manually approved before they appear live on your posts.

Head over to Settings » Discussion and scroll down to ‘Before a comment appears’ section. Check the box next to ‘Comment must be manually approved’ option.

Enable comment moderation in WordPress

Don’t forget to click on the ‘Save Changes’ button to store your settings.

Now whenever someone submits a comment to your WordPress site, it will go in the moderation queue. You can then go to the comments section to review and approve comments. See our guide on how to moderate comments in WordPress.

For more ways to handle comment spam check out our list of tips and tools to combat comment spam in WordPress.

19. How do I add email subscription to my WordPress blog?

Email subscription

Most users who find your website from search engines will most likely never find your website again. Email subscriptions allow you to convert those users into subscribers.

This way your users will get the content delivered to their inbox. It helps you build a loyal audience that keeps coming back.

For complete step by step instructions, visit our guide on how to add email subscriptions to your WordPress blog.

20. How do I get more email subscribers?

Get more subscribers

A plain looking email subscribe form in your sidebar is often not very noticeable. If your website is new, then it can be hard to convince users to subscribe.

This is where OptinMonster comes in. It is the most popular lead generation software that allows you to capture more email subscribers on your website. See how we used it to increase our email subscribers by 600%.

Need more ways to boost your email subscriptions? Check out these 12 tested and easy ways to grow your email list or head over to our ultimate guide on how to do lead generation in WordPress like a pro.

21. How to install Google Analytics in WordPress?

Google Analytics

Google Analytics is free website analytics tool. It tells you what pages users are seeing on your website, where they came from, and what they did on your website.

This is just some of the basic information that you get. Google Analytics actually provides a treasure of data that helps you understand what’s working on your website and what’s not. You can then plan your strategy accordingly and improve your website.

To learn more, see our tutorial on how to install Google Analytics in WordPress.

22. How to find free images for my WordPress site?

find free images

Images make your website look more interesting. They are the easiest way to build user engagement and increase the time users spend on your website.

However, not all website owners are photographers or graphic designers. You can’t just download and add any image to your website. Those images are probably copyrighted and can cause you trouble in the future.

Luckily, there are thousands of artists and photographers who put their work under free domain so that other people can use it.

We have compiled a handy list of the best sources for free public domain and CC0 licensed images. You can use these resources to find images and then use them into your posts.

23. How do I create my own images to use on my WordPress site?

Creating images

Sometimes you may not be able to find a suitable image for your blog post or may be you want to create a custom image.

You would think that with this much technology around, there must be dozens of tools that you can use to create images without learning graphic design.

You are totally right and we have compiled a list of the best tools to create better images for your WordPress blog posts.

24. Can I install WordPress on my computer?

Yes, you can. Many WordPress users install WordPress on their computers to test out WordPress, try plugins and themes, or build a website locally before going live.

For detailed instructions see our guide on how to install WordPress on your computer using Wamp or MAMP for Mac users.

25. My WordPress site is slow, how do I speed it up?

No one likes slow websites, particularly Google. Slow websites are not only bad for your users, they also negatively affect your SEO.

Luckily, it is not that hard to improve your website’s speed and performance. There are plenty of tips, tricks, and tools that will help you boost performance and make your website noticeably faster.

For complete step by step instructions, follow our ultimate guide to speed up WordPress.

26. What to do when I am locked out of WordPress admin area?

Sometimes when working on your WordPress site, you may accidentally lock yourself out of the WordPress admin area. To get back in, you will need to fix the issue that locked you out.

See our tutorial on what to do when locked out of WordPress admin area for detailed instructions.

27. How to fix common WordPress errors on my own?

Common WordPress errors

WordPress is used by millions of people all over the world. Most likely the error or issues that you face have already been solved by thousands of other users.

We have compiled a handy list of the most common WordPress errors and how to fix them. You should bookmark it as it will save you a lot of time and money.

28. How to protect my WordPress site from hackers

protect WordPress from hackers

WordPress powers nearly 28% of all websites on the internet. This makes it a special target for hackers, spammers, and malicious activities.

You can easily protect your site from hackers and malicious attacks by adding layers of security around your WordPress site.

Follow the instructions in our step by step ultimate WordPress security guide to protect your website against hackers, malware, and phishing attempts.

That’s all for now.

We hope this article answered some of the most frequently asked questions by WordPress beginners. You may also want to see these actionable tips to drive traffic to your WordPress blog.

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 28 Most Frequently Asked Questions by WordPress Beginners appeared first on WPBeginner.

28 Most Frequently Asked Questions by WordPress Beginners

WPBeginner has been helping WordPress beginners since 2009. Over these years, we have received tens of thousands of questions. We have noticed that some questions are asked more frequently by users. In this article, we will answer some of the most frequently asked questions by… Read More »

The post 28 Most Frequently Asked Questions by WordPress Beginners appeared first on WPBeginner.

WPBeginner has been helping WordPress beginners since 2009. Over these years, we have received tens of thousands of questions. We have noticed that some questions are asked more frequently by users. In this article, we will answer some of the most frequently asked questions by WordPress beginners.

Most frequently asked questions by WordPress users

Since this is a lengthy article, we have added a table of contents for easier navigation.

Table of Contents

Getting Started

WordPress Basics

Once You’re Up and Running

Troubleshooting

1. How do I start a WordPress blog?

Getting started

First you need to make sure that you are choosing the right blogging platform for your website. Self-hosted WordPress.org site is the best platform in our opinion. It offers you the flexibility and freedom to grow your blog without any limitations.

Next, you will need to sign up for a WordPress hosting account. All websites on the internet needs hosting. This will be your website’s home on the internet.

You will also need a domain name. This will be your website’s address on the internet that your users will type in their browsers to reach your site (e.g. wpbeginner.com or google.com).

We recommend using either Bluehost. They are one of the largest hosting companies in the world and an official WordPress hosting partner.

Once you have signed up for a hosting account, you can go ahead and install WordPress. For complete step by step instructions, see our guide on how to start a WordPress blog, and you will be up and running in minutes.

2. How much does it cost to build a WordPress website?

While WordPress itself is free, you will need a web hosting account and a domain name to use it on a live website. These will cost you money.

You can get started by signing up for a shared hosting account. After that you can use a free WordPress theme with essential free plugins to get started. This would cost you roughly around $100/year.

As your website grows, you will need more features, tools, and services to better serve your users. Some of these services and tools will cost additional money. Your goal will be to keep the costs down while offering the best experience for your users.

We have made a complete breakdown for you to look at. It shows you how much does it really cost to build a WordPress site for DIY users.

3. How do I make money from my WordPress site?

Monetizing your WordPress site

There are countless ways to make money from your WordPress site. In fact, website owners are coming up with new ways to make money online from their websites every day. You can run advertisements, sell products, recommend affiliate products, teach courses, sell paid content, and the list goes on.

Check out our list of 25 legit ways to make money online blogging with WordPress to explore more options.

4. Can I use WordPress without using any blog features?

Turn off blog features in WordPress

Yes, absolutely. Many WordPress websites are business sites that don’t use any blog related features at all. WordPress started out as a blogging platform, but now it is a full-fledged CMS and an application framework.

You can create a website using only the pages. If you want to completely turn off blogging, then check out our tutorial on how to easily disable blog features in WordPress.

5. How do I install plugins in WordPress?

WordPress plugins

Plugins are like apps for your WordPress site. They allow you to add additional features like contact forms, photo galleries, etc to your website.

To install plugins, first you need to visit Plugins » Add New page in the WordPress admin area. Next, you need to search for the plugin you are looking for by typing in keywords (like photo gallery, contact form, etc).

If you know the name of the plugin that you want to install, then you can just enter the name of the plugin.

Searching for a WordPress plugin

In the search results, click on the install button next to the plugin that you want to install and WordPress will install it for you.

Next, you will need to click on the activate button to start using the plugin.

You can also install plugins sold by third party developers. Those plugins come as a zip file.

Simply head over to Plugins » Add New page and then click on the upload button.

Upload plugin zip file

Next, you need to click on the choose file button to select the plugin zip file from your computer and then click on ‘Install now’.

For more detailed instructions, see our step by step guide on how to install a WordPress plugin.

6. Why I don’t see the Plugins menu in my admin panel?

Can't see plugins in my WordPress admin area

Most likely you are using WordPress.com, which is a blog hosting service created by WordPress co-founder Matt Mullenweg.

It is a solid blog hosting service, but there are some limitations to using WordPress.com. One of them is not able to install plugins.

See our article on the difference between WordPress.com and WordPress.org for more details.

If you want to move your WordPress.com blog to WordPress.org, then follow the instructions in our step by step tutorial on how to move your blog from WordPress.com to WordPress.org.

7. Which WordPress plugins I should install on my website?

Which plugins to install?

At the time of writing this article, there were more than 49,000 plugins available in the free WordPress plugins directory alone. Not all of them are great, which leads to the question that which WordPress plugins should you install on your website?

We have compiled a list of essential WordPress plugins that you should install on your website. For more plugin recommendations, you can check out our WordPress plugins section.

8. How to select a theme for my WordPress site?

Selecting a theme for WordPress

Themes control the appearance of your WordPress site. There are thousands of free and paid WordPress themes available for every kind of website.

First, you will need to decide whether you want to use the free or premium theme. Premium WordPress themes come with support and guaranteed updates.

This does not mean that free WordPress themes are low quality. In fact, free WordPress themes that are available on WordPress.org theme directory go through a very rigorous review process.

For more details see our article on pros and cons of both free vs premium WordPress themes.

You will also need to consider your audience, your website’s topics, compatibility with plugins, and language requirements.

We have compiled a list of things you should consider when selecting the perfect WordPress theme for your website.

For theme recommendations check out our showcase section where we regularly publish our expert pick of the best WordPress themes.

Here are some of the our recent expert selections:

9. How do I install a WordPress theme?

After you have selected a theme for your website, you will need to install it.

Head over to Appearance » Themes page in WordPress admin area and then click on the ‘Add New’ button on the top.

Add new theme

On the next page, you can search for a free theme from WordPress.org theme directory. If you already have your theme as a zip file, then click on the upload button to select the zip file and install it.

Search or upload a theme file

For more detailed instructions, see our step by step guide on how to install a WordPress theme for beginners.

10. How to add a blog post or page in WordPress?

By default, WordPress comes with two default content types. They are called posts and pages.

Posts are part of a blog and are displayed in a reverse chronological order. Pages are static and not part of a blog.

See our guide on the difference between posts and pages.

To add a new blog post, head over to Posts » Add New page.

Add new blog post

To create a new page, you need to visit Pages » Add New page.

Both page’s and post’s edit screens look similar with some minor differences.

For detailed instructions, see our guide on how to add a new blog post in WordPress while utilizing all the features.

11. How to embed videos in WordPress?

You can directly upload videos to your WordPress site, but we always recommend against that. For more discussion on this topic, see our article on why you should never upload a video to WordPress.

Instead, you should use a video hosting service like YouTube or Vimeo. Simply upload your video to one of these services and then copy your video URL.

Come back to your WordPress site and simply paste the video URL in the post editor. WordPress will automatically fetch the embed code and display your video.

Embed videos in WordPress

12. How do I show photos in rows and columns in WordPress?

Photos in rows and columns

By default, when you add multiple images to a WordPress post or page, they would appear right next to each other or on top of each other.

This doesn’t look so great. You can easily solve this problem by showing your photos in a grid layout with rows and columns.

For complete step by step instructions see our guide on how to display WordPress photos in rows and columns.

13. How do I add a navigation menu in WordPress?

Navigation menu on a WordPress site

Navigation menu is a set of links that take users to different sections of your website. It usually appears on top of a website.

WordPress comes with an easy navigation menu management system. It allows you to easily create menus by adding links and displaying them on locations defined by your theme.

For complete step by step instructions, see our beginner’s guide on how to add navigation menu in WordPress.

14. How do I use categories and tags in WordPress?

Category vs Tag

Categories and tags allow you to sort your content into topics. This makes it easier for you to organize content and for your users to find it.

Categories are for broader topics. You can think of them as different cabinets in a file room. They can also have sub-categories. For example, on a news website you can have categories for national news, international news, entertainment, and op-eds.

On the other hand, tags are used for more specific topics discussed in an article. Think of them as an index of words that describe an article.

For more detailed discussion on the topic, check out our guide on categories vs tags and SEO best practices for sorting your content.

15. How do I add a contact form in WordPress?

A contact form allows visitors to contact you directly from your website by filling out a simple form.

By default, WordPress does not come with a built-in contact form but there are many contact form plugins which allow you to easily create and add forms to your website.

For detailed step by step instructions see our guide on how to create a contact form in WordPress.

16. How do I start an online store with WordPress?

WordPress eCommerce

WordPress powers millions of ecommerce websites and online stores all over the world. Using one of the ecommerce plugins for WordPress, you can easily add an online store to your WordPress site and sell both digital and physical goods.

We have created a step by step tutorial on how to start an online store to help you get started.

17. How do I improve SEO in WordPress?

WordPress SEO

SEO or search engine optimization is a set of best practices that allow you to get more traffic to your website from search engines.

WordPress is quite SEO friendly out of the box, but there is so much more that you can do to make your website even more search engine friendly.

We have created an ultimate step by step WordPress SEO guide for beginners to improve your SEO like a pro.

18. How to deal with comment spam in WordPress?

Comment spam is one of the annoying things that you will come across as your website grows. However, there are tools and tips that you can use to effectively reduce comment spam on your website.

First, you will need to install and activate the Akismet plugin. Akismet monitors your WordPress comments for spam and automatically blocks spam comments. See our Akismet 101 guide to learn more about Akismet and why you should start using it right away.

Next, you need to enable comment moderation on your WordPress site. This will ensure that all comments are manually approved before they appear live on your posts.

Head over to Settings » Discussion and scroll down to ‘Before a comment appears’ section. Check the box next to ‘Comment must be manually approved’ option.

Enable comment moderation in WordPress

Don’t forget to click on the ‘Save Changes’ button to store your settings.

Now whenever someone submits a comment to your WordPress site, it will go in the moderation queue. You can then go to the comments section to review and approve comments. See our guide on how to moderate comments in WordPress.

For more ways to handle comment spam check out our list of tips and tools to combat comment spam in WordPress.

19. How do I add email subscription to my WordPress blog?

Email subscription

Most users who find your website from search engines will most likely never find your website again. Email subscriptions allow you to convert those users into subscribers.

This way your users will get the content delivered to their inbox. It helps you build a loyal audience that keeps coming back.

For complete step by step instructions, visit our guide on how to add email subscriptions to your WordPress blog.

20. How do I get more email subscribers?

Get more subscribers

A plain looking email subscribe form in your sidebar is often not very noticeable. If your website is new, then it can be hard to convince users to subscribe.

This is where OptinMonster comes in. It is the most popular lead generation software that allows you to capture more email subscribers on your website. See how we used it to increase our email subscribers by 600%.

Need more ways to boost your email subscriptions? Check out these 12 tested and easy ways to grow your email list or head over to our ultimate guide on how to do lead generation in WordPress like a pro.

21. How to install Google Analytics in WordPress?

Google Analytics

Google Analytics is free website analytics tool. It tells you what pages users are seeing on your website, where they came from, and what they did on your website.

This is just some of the basic information that you get. Google Analytics actually provides a treasure of data that helps you understand what’s working on your website and what’s not. You can then plan your strategy accordingly and improve your website.

To learn more, see our tutorial on how to install Google Analytics in WordPress.

22. How to find free images for my WordPress site?

find free images

Images make your website look more interesting. They are the easiest way to build user engagement and increase the time users spend on your website.

However, not all website owners are photographers or graphic designers. You can’t just download and add any image to your website. Those images are probably copyrighted and can cause you trouble in the future.

Luckily, there are thousands of artists and photographers who put their work under free domain so that other people can use it.

We have compiled a handy list of the best sources for free public domain and CC0 licensed images. You can use these resources to find images and then use them into your posts.

23. How do I create my own images to use on my WordPress site?

Creating images

Sometimes you may not be able to find a suitable image for your blog post or may be you want to create a custom image.

You would think that with this much technology around, there must be dozens of tools that you can use to create images without learning graphic design.

You are totally right and we have compiled a list of the best tools to create better images for your WordPress blog posts.

24. Can I install WordPress on my computer?

Yes, you can. Many WordPress users install WordPress on their computers to test out WordPress, try plugins and themes, or build a website locally before going live.

For detailed instructions see our guide on how to install WordPress on your computer using Wamp or MAMP for Mac users.

25. My WordPress site is slow, how do I speed it up?

No one likes slow websites, particularly Google. Slow websites are not only bad for your users, they also negatively affect your SEO.

Luckily, it is not that hard to improve your website’s speed and performance. There are plenty of tips, tricks, and tools that will help you boost performance and make your website noticeably faster.

For complete step by step instructions, follow our ultimate guide to speed up WordPress.

26. What to do when I am locked out of WordPress admin area?

Sometimes when working on your WordPress site, you may accidentally lock yourself out of the WordPress admin area. To get back in, you will need to fix the issue that locked you out.

See our tutorial on what to do when locked out of WordPress admin area for detailed instructions.

27. How to fix common WordPress errors on my own?

Common WordPress errors

WordPress is used by millions of people all over the world. Most likely the error or issues that you face have already been solved by thousands of other users.

We have compiled a handy list of the most common WordPress errors and how to fix them. You should bookmark it as it will save you a lot of time and money.

28. How to protect my WordPress site from hackers

protect WordPress from hackers

WordPress powers nearly 28% of all websites on the internet. This makes it a special target for hackers, spammers, and malicious activities.

You can easily protect your site from hackers and malicious attacks by adding layers of security around your WordPress site.

Follow the instructions in our step by step ultimate WordPress security guide to protect your website against hackers, malware, and phishing attempts.

That’s all for now.

We hope this article answered some of the most frequently asked questions by WordPress beginners. You may also want to see these actionable tips to drive traffic to your WordPress blog.

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 28 Most Frequently Asked Questions by WordPress Beginners appeared first on WPBeginner.

How to Properly Update WordPress Plugins (Step by Step)

After you start your blog and install plugins, its extremely important for security reasons that you keep the plugins updated. In this step by step guide, we will show you how to properly update WordPress plugins, and how to manage plugin updates more efficiently. Why… Read More »

The post How to Properly Update WordPress Plugins (Step by Step) appeared first on WPBeginner.

After you start your blog and install plugins, its extremely important for security reasons that you keep the plugins updated. In this step by step guide, we will show you how to properly update WordPress plugins, and how to manage plugin updates more efficiently.

How to update WordPress plugins

Why Update WordPress Plugins?

WordPress plugins are like apps for your WordPress site. You can install them to add new features and functionality to your website like adding contact forms, photo galleries, sliders, etc.

You can learn more about WordPress plugins in our guide what are WordPress plugins? How do they work?.

Plugins are created by third-party developers. Most of them keep improving their plugins by adding new features, improving code quality, and keeping them secure. These changes are then released as updates.

You should always keep your WordPress plugins up to date to ensure that those changes are applied on your site immediately. This improves WordPress security and performance of your website.

Having said that, let’s see how to update WordPress plugins.

How to Properly Update WordPress Plugins

WordPress comes with a built-in update system. It automatically checks for updates and shows you notifications when there are updates available for your WordPress plugins, themes, and WordPress core software.

WordPress update notifications inside admin area

You can also manually check for updates by visiting Dashboard » Updates page.

Updates page

When there is a new update available for plugins, you will see the notification on the plugins menu in the WordPress admin bar.

You can install these updates by visiting the Plugins page. You will see a notification below each plugin that has updates available for you to install.

Updates highlighted on the plugins page

You can just click on the ‘Update Now’ link to install each update.

Bulk Update WordPress Plugins

If there are updates for several plugins on your website, then you may want to quickly review and bulk update those plugins.

To do that, you need to visit the Plugins page and click on the ‘Update Available’ link.

This will show you the list of all plugins that have updates available. You can select all of them and then select ‘Update’ from the ‘Bulk Actions’ drop down menu.

Bulk update plugins

Before You Update, Read this!

Before you update the plugin, it’s important that you click on the View version details link to see what changes the plugin author has made.

This will keep you informed as to what changes were made should anything not work properly.

Unless the version details specifically say security update, we usually wait one full week before updating the plugin. In this time, all errors usually get caught, reported, and fixed.

If you have a heavy traffic site that is generating a lot of leads, then we recommend you to do the same.

How to Undo the WordPress Plugin Update

Sometimes a plugin update can produce unexpected results like some plugin features may not work properly.

In that case, first you will need to deactivate that plugin.

If you can access the Plugins page in WordPress admin area, then simply click on the ‘Deactivate’ link below the misbehaving plugin.

Deactivate plugins

After that you can install the WP-Rollback plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go back to the Plugins page, and you will be able to see a rollback option below each plugin. Clicking on it will allow you to rollback the plugin to any previous version.

Rollback plugin to previous version

For detailed instructions, check out our guide on how to how to rollback WordPress plugins.

If you are unable to access the WordPress admin area, then follow the steps in our guide on how to deactivate all plugins when not able to access WordPress admin area.

Tips to Manage WordPress Plugins More Efficiently

If you manage multiple WordPress sites, then you will soon realize that you have to update plugins quite often. Here are some tips to help you manage them more effeciently.

If you are confident about the plugins that you are using, then you can enable automatic updates for all your WordPress plugins.

However, a better approach will be to setup automatic updates only for select few plugins that you trust. Follow the instructions in our guide on how to better manage WordPress updates.

If you don’t manage multiple WordPress sites, then you can setup email notifications for plugin updates. This will allow you to be alerted when there is an update available without logging into your WordPress site.

Always make sure that you have setup an automatic backup plugin on your WordPress site. This will allow you to restore your WordPress site in case something goes wrong.

Last but not least, if you can afford managed WordPress hosting, then the staging website feature is definitely worth the investment. It allows you to test the new plugin updates on a staging environment before going live. We recommend using either WPEngine or SiteGround’s GoGeek plan.

We hope this article helped you learn how to update WordPress plugins. You may also want to see our list of essential WordPress plugins for your website.

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 Properly Update WordPress Plugins (Step by Step) appeared first on WPBeginner.

How to Add Beautiful Pricing Tables in WordPress (No Coding Required)

Do you want to add beautiful pricing tables on your WordPress site? Pricing tables have a huge impact on how users make their buying decision. Adding beautiful pricing tables that are easy to scan helps users select the right product. Which in turn helps you… Read More »

The post How to Add Beautiful Pricing Tables in WordPress (No Coding Required) appeared first on WPBeginner.

Do you want to add beautiful pricing tables on your WordPress site? Pricing tables have a huge impact on how users make their buying decision. Adding beautiful pricing tables that are easy to scan helps users select the right product. Which in turn helps you boost your conversions and increase sales. In this article, we will show you how to easily add beautiful pricing tables in WordPress without writing any code.

How to add beautiful pricing tables in WordPress

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

It is a premium plugin with prices starting from $29 for a single site license.

Upon activation, the plugin adds a ‘Pricing Tables’ menu item to your WordPress admin bar. Clicking on it will take you to the plugin’s settings page.

Enter your license key

You will be asked to enter your license key. You can get this information from your account on plugin’s website and in the email you recieved after purchasing the plugin.

After entering your license key click on the save changes button to store your settings.

You are now ready to create pricing tables.

Creating Your First Pricing Table

To create a pricing table in WordPress, simply go to Pricing Tables » Add New page.

You will see previews of available templates to choose from.

Select a template for your pricing table

After choosing a template, click on the ‘Content’ tab to enter table contents.

In the table content area, you will see columns with different fields.

First you need to add a plan name, then pricing and features. After that, you need to enter the button text and URL.

Editing pricing table contents

You can easily add a new column by clicking on the ‘New Column’ button.

Often in pricing tables, you may notice that one plan is marked as featured or most popular. You can do this in your pricing table as well by clicking on the feature column button for the specific column that you want to highlight.

Once you are finished adding content for your pricing table columns, you can move on to the ‘Design’ tab. This is where you can tweak the visual appearance of your pricing table.

Customizing pricing table design and colors

You can change colors, font sizes, column backgrounds, etc.

Once you are done, you can click on the Save & Preview button to see how your table looks.

Pricing table preview

If you want to change anything, then you can do so by editing the table. When you are done, click on the Deploy (Get Shortcode) button.

You will then see a popup containing the shortcode you need to add this pricing table into any WordPress post or page.

Copy the pricing table shortcode

All you need to do is copy the shortcode and add it to your post or page where you want to display the pricing table.

We hope this article helped you learn how to add beautiful pricing tables in WordPress without any coding. You may also want to see essential WordPress plugins for business websites.

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 Beautiful Pricing Tables in WordPress (No Coding Required) appeared first on WPBeginner.

How WordPress Plugins Affect Your Site’s Load Time

Have you ever wondered how WordPress plugins affect your site’s load time? WordPress plugins allow you to add features to your site, but they can also affect your website speed. In this article, we will show you how WordPress plugins affect your site’s load time,… Read More »

The post How WordPress Plugins Affect Your Site’s Load Time appeared first on WPBeginner.

Have you ever wondered how WordPress plugins affect your site’s load time? WordPress plugins allow you to add features to your site, but they can also affect your website speed. In this article, we will show you how WordPress plugins affect your site’s load time, and how you can control them more efficiently.

How WordPress plugins affect your site's load time

How WordPress Plugins Work?

WordPress plugins are like apps for your WordPress site. You can install them to add more features to your website like contact forms, photo galleries, or an ecommerce store.

When someone visits your website, WordPress first loads its core files and then loads all your active plugins.

For more details, take a look at our article about what are WordPress plugins? And how do they work?.

How Can Plugins Affect Site Load Time?

Each WordPress plugin offers different functionality and features. To do that, some plugins make database calls on the backend while others load assets on the front-end such as CSS stylesheets, JavaScript files, images, etc.

Making database queries and loading assets adds up to your site’s load time. Most plugins make an HTTP request to load assets like scripts, CSS, and images. Each request increases your site’s page load time.

When done properly, the performance impact is often not too noticeable.

However, if you are using multiple plugins that are making too many http requests to load files and assets, then it will affect your site’s performance and user experience.

How to Check Files Loaded by WordPress Plugins?

To see how plugins are affecting your page load time, you need to check the files loaded by WordPress plugins.

There are plenty of tools that you can use to figure this out.

You can use your browser’s developer tools (Inspect in Google Chrome and Inspect Element in Firefox).

Simply visit your website and right click to select Inspect. This will open the developer tools panel.

You need to click on the ‘Network’ tab and then reload your website. As the page reloads, you will be able to see how your browser loads each file.

See page load time and files loaded with inspect tool

You can also use third-party tools like Pingdom and GTmetrix to see this. Among other useful information, these tools will also show you all files that are loaded and how much time they took to load.

Testing page load time using Pingdom

How Many Plugins are Too Many?

As you see these files being loaded, you may start wondering how many plugins you should I use on my site? How many plugins are too many?

The answer really depends on the set of plugins you are using on your website.

A single bad plugin can load 12 files while multiple good plugins will add just a couple of extra files.

All well-coded plugins try to keep the files they load to a minimum. However, not all plugin developers are that careful. Some plugins will load files on every single page load, even when they don’t need those files.

If you are using too many of such plugins, then this will start affecting your site’s performance.

How to Keep Plugins in Control?

The most important thing you can do on your WordPress site is to only use plugins that are well coded, have good reviews, and are recommended by trusted sources.

See our guide on how to find which WordPress plugins.

If you find that a WordPress plugin is affecting your site’s load, then look for a better plugin that does the same job but better.

Next, you need to start using caching and CDN to further improve your site’s performance and speed.

Another factor you should consider is your website hosting. If your hosting servers are not properly optimized, then it will increase your site’s response time.

This means that not just plugins, but your site’s overall performance will be slower. Make sure you are using one of the best WordPress hosting companies.

As a last resort, you can uninstall plugins that you can live without. Carefully review the installed plugins on your website,and see if you can uninstall some of them. This is not an ideal solution as you will have to compromise on features for speed.

Optimize WordPress Plugin Assets Manually

Advanced WordPress users can try to manage how WordPress plugins load files on their site. Doing so requires some knowledge of coding and some debugging skills.

The proper way to load scripts and stylesheets in WordPress is by using the wp_enqueue_style and wp_enqueue_script functions.

Most WordPress plugin developers use them to load plugin files. WordPress also comes with easy functions to deregister those scripts and stylesheets.

However, if you just disable loading those scripts and stylesheets, then this will break your plugins, and they will not work correctly. To fix that, you will need to copy and paste those styles and scripts into your theme’s stylesheet and JavaScript files.

This way you will be able to load all of them at once, minimizing the http requests and effectively decreasing your page load time.

Let’s see how to easily deregister stylesheets and JavaScript files in WordPress.

Disable Plugin Stylesheets in WordPress

First, you will need to find the name or handle of the stylesheet that you want to deregister. You can locate it using your browser’s inspect tool.

Finding a style name

After finding the stylesheet handle, you can deregister it by adding this code to your theme’s functions.php file or a site-specific plugin.

add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
wp_deregister_style( 'gdwpm_styles-css' );
}

You can deregister as many style handles as you want within this function. For example, if you have more than one plugin to deregister the stylesheet for, then you would do it like this:


add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
wp_deregister_style( 'gdwpm_styles-css' );
wp_deregister_style( 'bfa-font-awesome-css' );
wp_deregister_style( 'some-other-stylesheet-handle' );
}

Remember, that deregistering these stylesheets will affect plugin features on your website. You need to copy the contents of each stylesheet you deregister and paste them in your WordPress theme’s stylesheet or add them as custom CSS.

Disable Plugin JavaScripts in WordPress

Just like stylesheets, you will need to find out the handle used by the JavaScript file to deregister them. However, you will not find the handle using the inspect tool.

For that you will need to dig deeper into plugin files to find out the handle used by the plugin to load a script.

Another way to find out all the handles used by plugins is to add this code into your theme’s functions.php file.

function wpb_display_pluginhandles() { 
$wp_scripts = wp_scripts(); 
$handlename .= "<ul>"; 
    foreach( $wp_scripts->queue as $handle ) :
      $handlename .=  '<li>' . $handle .'</li>';
    endforeach;
$handlename .= "</ul>";
return $handlename; 
}
add_shortcode( 'pluginhandles', 'wpb_display_pluginhandles'); 

After adding this code, you can use [pluginhandles] shortcode to display a list of plugin script handles.

Display a list of plugin script handles in WordPress

Now that you have script handles, you can easily deregister them using the code below:

add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );

function my_deregister_javascript() {
wp_deregister_script( 'contact-form-7' );
}

You can also use this code to disable multiple scripts, like this:

add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );

function my_deregister_javascript() {
wp_deregister_script( 'contact-form-7' );
wp_deregister_script( 'gdwpm_lightbox-script' );
wp_deregister_script( 'another-plugin-script' );
}

Now, as we mentioned earlier that disabling these scripts will stop your plugins to work properly.

To avoid this, you will need to combine JavaScripts together, but sometimes it does not work smoothly, so you must know what you are doing. You can learn from trial and error (like a lot of us do), but we recommend you do not do that on a live site.

The best place to test is on a local WordPress install or on a staging site with managed WordPress hosting providers.

Load Scripts Only on Specific Pages

If you know that you will be needing a plugin script to load on a specific page on your website, then you can allow a plugin on that particular page.

This way the script remains disabled on all other pages of your site and is loaded only when needed.

Here is how you can load scripts on specific pages.

add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );

function my_deregister_javascript() {
if ( !is_page('Contact') ) {
wp_deregister_script( 'contact-form-7' );
}
}

This code simply disables contact-form-7 script on all pages except the contact page.

That’s all for now.

We hope this article helped you learn how WordPress plugins affect your site’s load time. You may also want to see our ultimate guide to improve WordPress speed and site performance.

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 WordPress Plugins Affect Your Site’s Load Time appeared first on WPBeginner.