Archive

How to update php in wordpress

 Why we need to update PHP version:

  PHP plays an important role in your wordpress. you should see the latest updates of PHP. If your PHP version is latest then your web sites work efficient. Now the current version of PHP is 7.4.  If your PHP version is latest then your site is faster than old version. If you want that your site become safe from hackers. then you should update PHP version because it has the latest security features. and you should know that how to update php in wordpress.

There are a lots of benefits if your website use latest version of PHP. Latest version help your website on high rank position. If you use latest version then your site is secure from hacker and you can secure your data and cost. Some time you forget to update PHP version. So you should make a backup for your site otherwise you face many problems.

How to update php in wordpress

For update the PHP version you should follow these steps:

  • Login to your wordpress account.
  • Click on dashboard.

wordpress dashboard

  • After click on dashboard scroll down the page. you can see that a warning massage is show in box PHP update required.

php update required

  • For update the php version you want to login your cpanel.
  • In cpanel go to software section and click on multiPHP manager. After click on it you this this type of window.

php diffrent versions

  • you can see that in your cpanel in domain part behind the every domain 7.1 version of PHP is install.
  • Now you are going to update your PHP version.
  • you can see that on arrow position PHP versions are available.
  • you choose latest version and click on apply.

latest php version

  • Now your PHP version is change.

change version

  • Now check out in your wordpress dashboard error is drop or not.

no error

  • Our php version is update successful.

There is another method to check the health of your website:

  • Login to wordpress and move cursor on plugin chooses add new plugin.
  • Search a plugin health check and troubleshooting. install this plugin and apply on your website.
  • This plugin tells you about the health of your website as well as recommended improvement.

health care

Conclusion:

In this article we talk about the security of your website. How to improve the security using PHP latest version. And how to update PHP in wordpress using cpanel and convert on wordpress.

You can also read the following articles:

How To Zip A Directory In Unix

Php Max_execution_time

your php installation appears to be missing the mysql extension which is required by wordpress

When you visit our word press site, you will see this type of error.(your php installation appears to be missing the mysql extension which is required by wordpress)

A question is rise that why this error come? And how to resolve it?

This happen that when your PHP code is not well suited with the current version of PHP which your site is currently using. If you are using any version of PHP over 7.0 might be possible you can see this error. It happened due to the old code is not updated. you should upgrade wordpress core files to the current version as well as plugin which you use in your site.

How to check that which version of PHP your site is using?

Firstly check that which PHP version of your site is using.

If you want to see that the information about your PHP server and which version you are using.

you use PHPinfo () this is a function of PHP it show you reliable information about PHP server and PHP version.

There is another function which is phpversion () it display only the information about PHP version.

In your website go to document root directory and upload PHP file using FTP client.

upload php fileopen your browser then you go to your domain.com/phpinfo.php, now you can see the version of php server on your screen.

php server version

How to resolve your php installation appears to be missing the mysql extension which is required by wordpress

Upgrade wordpress :

If you have to update your PHP version over 7.0 and still seeing this error you must upgrade your wordpress core files and plugin.

Login to your account and follow these steps:

dashboad update

Click on update button and upgrade your wordpress.

upgrade wordpress

you can see that an update is available now update wordpress and check that your problem is resolve or not.

Myqsl is installed ?

if you have to update your word press and your problem isn’t resolve then you should check that your mysql is installed and enabled or not.

If mysql is not installed then you should create an info.php file in root directory of your wordpress via FTP.

It will be look like this:

php info file

Save this file and go to browser and type https://.www.ourdomain.com/info.php . you can see a page which contains the information of your php installation.

If it is installed it shows like client api library version.

api library

If this it’s look empty then extension is not installed. Installation of steps depends on your host and system.

If your host is using cpanel then you can change the extension of mysql by clicking on select php version in your software.

 

 

 

 

 

 

 

Contact Form 7 Not Sending Emails

The “Contact Us” form is one of the most important parts of a website building irrespective of the platform used for building the website. It let the visitors contact website owners and put their queries.

As we know, WordPress is the largest platform for building websites. Just like that, contact form 7 is the best plugin that is used to create the contact us page on the sites developed using WordPress.

Sometimes, people facing problems like not receiving emails that visitors sent by using the contact us form. Newbies mostly face this issue because they don’t have the exact idea of how it works at its best.

Therefore, visitors can’t contact website owners because they receive the alert of not sending the email. Sometimes they receive a successful delivery message, but they never reply because they never received the email.
Let’s discuss this matter in detail and find out the possible reasons and its solution.

Why Contact Form 7 Is Not Sending Emails?

In case you have an issue with contact form 7 not working. Then, you have to analyze a couple of basic reasons before going in-depth, i.e., the WordPress server and the hosting server. If both these are working properly, then there is something with other things.

There are two main possible reasons for Contact Form 7 Not Sending Emails and stopped working:

1. Hosting Server Doesn’t Support PHP Mail Function

Contact form 7 uses the PHP mail function for sending or receiving emails. Some hosting servers don’t support the PHP mail function; that’s why first of all, you have to check the availability of the PHP mail function.

If this is the reason, do contact your hosting provider and ask the representative to solve the issue.

2. Email Spoofing

It is the most common problem faced by people, but due to the lack of information about the plugin’s settings. It happens because many people, especially newbies, use the default settings of the plugin.
As visitors send you an email through the contact us form, you receive an email from “contact form 7” about receiving email.

Contact form 7 sends notifications to the website owner by using the email address of the contacting person. The email is marked as spoofing because the sender’s email address does not belong to the site domain, but it is sent from your site.

Email spoofing is similar to spam emails, and it goes to the junk folder instead of receiving these in the inbox. You can easily get out of this problem by manipulating the settings and mark such email as not spoofing. Then you can receive notifications from the contacting person’s email.

Solution Of Contact Form 7 Stopped Working (Email Spoofing)
The only solution to the WordPress contact form not working is changing from settings.

As we mentioned earlier, email spoofing happens due to the use of default settings of contact form 7, and it doesn’t allow email masking. Even you are receiving emails after using default settings, then email spoofing can happen any time in the future.

Follow the below-mentioned steps to solve the issue:

Step # 1,
First of all, login to cPanel of your web hosting and look for the email tab in the dashboard. Click on the Email tab, and you can see a new window there, and you can see the “create” button.
You need to create a new email address with your website’s domain name because you have to use it as a “From” email in the contact form. It important to select the domain name of the website is selected while creating the email address.

Step # 2,
After creating the new email address, go to plugin (contact form 7) settings in the dashboard of WordPress. There you can see a “From” field in the mail tab. Provide the new email address that you created just now in the field.
Use additional header settings as Reply-To: [your-email], and hit the save button to save the final version.
You can send a test mail using the contact us page, you receive it in your inbox, and it stops marked emails as a spoof.

Conclusion
Contact form 7 is the best plugin that is widely used by websites for contact with their visitors. It works great but setting up the contact us form is somehow tricky.

But if you follow the guidelines that we discussed above, you can contact your visitors at the right time.

Read about how to setup a cron job

How to move wordpress site to the new domain

We are covering the complete about how to move wordpress site to the new domain name. Read the complete article it will help you to move your domain from one domain to another domain name.

Are you looking for an easy and simple way to move your WordPress site to a new domain? Do you think moving a website to a new domain is a challenging task? 

My answer would be a No. Even if you don’t know anything technical about websites, you can easily do this if you follow the steps given below. I will take you through different steps by which you can easily migrate your WordPress website to a new domain.

Let’s get right into the topic. Try doing it with me, so you don’t miss any step.

Migrating the WordPress Website Manually

Here’s how you can quickly move your website to another domain.

Step#1: Visit Your Website

Firstly, visit your website to see that the website is working perfectly fine. If it works very well, then get ready for shifting your website.

Step#2: Backup your Website and Export Database

To move a website, you have to create a backup of your web files and the database. Download all the files in your computer and copy them in another to keep as another backup.

You can also backup your website by using a Duplicator Plugin.

In this tool, you will find a Create new option. The plugin will start scanning your website once you click the Next button. It will require just a few minutes to thoroughly scan your website.

Once it’s done, click on the build button, and you will see an option from where you can easily download the backup of your website. You also have to checkmark the yes box for the tool to create a backup.

You can also Export your website’s database from phpMyAdmin and save that SQL-file in another folder as a backup that you will import later in the new domain.

Login in your phpMyAdmin, select the website database and click export to download it onto your computer.

Some hosting providers provide a backup option for your website that you can easily access at any point. You can also create a backup through File Manager or FTP and download it to your computer.

Step#3: Buy a New Domain name

You will need a new domain where you will transfer these backup files. You can set up the new domain easily in a similar way to the previous domain.

If your hosting provider also has an option to buy a domain name, you can save up some time. Still, if you buy the domain from anyone else, you will have to point the Nameservers to the new location.

Step#4: Upload files and Import Database to New Domain

Now login to your new Domain via FTP and upload all the backup files to the new domain. If your backup was made through the file manager, then you will need to unzip the files.

You can also import your Database files to your phpMyAdmin of the New Domain so you can transfer the website entirely to the new name.

Step#5: Locate wp_options

When you are inside the phpMyAdmin of your new website, Locate the tab named wp_options, where you have to make some changes to migrate the website to a new domain completely.

Step#6: Change Siteurl And Home

Once you have located the wp_options tab now, you have to follow the following steps to update the siteurl and home, after which your website will be live again on the new domain and Url.

  • Find the siteurl and home tabs. These are usually on the first two lines.
  • For siteurl, replace the old domain name with the new domain name under the option_value column.
  • Press enter and repeat the same for the home tab.

Step#7: Change Database Connection details

Now you are almost done. Only one last step, and then you can visit your site from the new domain.

You have to update the login details in WordPress while setting up a new domain. Follow the below-mentioned seven steps for updating the details.

  • Log in to your website’s control panel.
  • Select option of the File Manager under the files and security tab
  • Now you have to locate the wp-config.php. You can locate it in the same place where you installed WordPress.
  • Now you have to locate the login details carefully. You can usually find it on the 20th line or so.
  • Now in the fields under, update your website’s login details, and you are almost done. Just a few little details and your website will be back to the way it was.

Step#8: Check your Website on New Domain

Now you are all set. Firstly, make your old website offline, so it does not interfere.

Now open your website from the new Url and check if everything is working completely fine. There are a few fixes that you have to do manually to run your website correctly.

Step#9: Check for Few Fixes

You will have to create some 301 Redirects and change the different pages’ permalinks to work correctly.

You might also see that some images are not loading correctly. In that case, you need to download Better Search Replace plugin through the WordPress dashboard. After installing it, you can go into tools and write the old domain name and the new domain name.

Check the box, Run in dry and let it do the magic for you. It will replace the links from the last website to the new domain.

Step#10: Check Your Website Again

Now recheck your website for any possible bugs. If you don’t see any, you have successfully migrated your WordPress website to the new domain.

Conclusion

So that’s all from my side.

I tried my best to explain every step in detail so not to face any problems while performing the migration. If you have followed the steps carefully, you can successfully transfer your website to a new domain name.

If you still have any query in mind, don’t hesitate to contact our support center to answer your query.

How to Setup a Cron Job

Linux developers need to perform many tasks regularly or on a repeated basis that requires a bunch of time. In this scenario, they need to automate the tasks on a particular date, day, or time to avoid missing any task and save time.

A cron job is the best way to automate the repeated tasks as per needs and requirements. Developers widely use the cron tool for creating a cron job.

Usually, newbies want to automate their tasks, but they don’t know how to run the cron job. That’s why we will discuss the basics of a cron job and how to create a cron job in this article. Stay with us to understand the entire process simply and easily.

What is a Cron Job?

Cron is a Linux-based utility used for the scheduling of various tasks at a particular time or date. Usually, Linux developers use this tool widely for the execution of repeated tasks. For example, you make a rule to make a backup of your server every Monday morning. In that case, you can set a cron job instead of doing it manually every time.

You can use crop jobs to modify the files on the database or perform regular tasks like sending notifications or emails regularly.
It is easy to set up a cron job and if you want to know more about the setup process, then continue reading.

Components Parts of a Cron Job

Usually, any cron job comprises of three components:
A script that you have to run
A command that is required to run the script regularly
The output or action of the script based on the command of the script. Sometimes, most people don’t know how to setup a cron job Linux for running a script, provide you some specific setup instructions. That’s why, if you don’t know about it, then contact the author of the script before setting up the cron job.

How to Understand Cron Syntax?

A syntax is a group of instructions or rules that define various symbols in a system’s programming language to understand the command. That’s why, like other programming languages, cron job also uses syntax.
Understanding the syntax for a cron job makes it easier to set up the cron job. The following is the format of a cron syntax that you can use for a cron job:

A B C D E USERNAME /path/to/command arg1 arg2

In the above cron syntax:

A indicates minutes range from 0 to 59
B indicates hours range from 0 to 23
C indicates days range from 1 to 31
D indicates month range from 1 to 12 (Jan to Dec)
E indicates the day of a week from 1 to 6 (Sunday to Saturday)
Username indicates the account from where you do log in
/path/to/command refers to the script or command that you want to run

Also, you have to use some operator symbols that let you use multiple values in a single field.

These symbols are:
Asterisk (*) identifies all possible values for a field
The comma (,) identifies a list of values
Dash (-) is used for a range of values
Separator (/) identifies a step value

How to Create a Cron Job?

You can use either method mentioned below to create a cron job, i.e., set up a cron job using cPanel or set a cron job using Plesk. Let’s have a look at both methods one by one.

Setup a Cron Job Using cPanel

Follow the below-mentioned steps for creating the cron job in cPanel:

Login to cPanel at ARZHost

Click on a cron job in the advanced menu or search for a cron job
Update the email address for receiving the updates about the cron job
As you click on the cron job in the advanced menu, you can see the option “add a new cron job,” just click on it.
Provide the command either directly or by uploading the file containing commands.

Click on next and select the frequency of command in the command settings from the options available in the form of a drop-down list. You can also set the frequency by providing manual settings of time and date.
After finishing the setup, just hit the add new cron job button, and you are done with the process.

It is a simple process. You can create multiple cron jobs by repeating the entire process and providing different commands.

Setup a Cron Job Using Plesk

Plesk is an alternative for creating the cron job on Linux and windows based servers. Follow the following steps for understanding the process of creating a cron job using Plesk.

Login Plesk control panel at ARZHost

Click on the tools and settings option in server management that you can see on the left side of the dashboard
Click on scheduled tasks under the tab tools & resources and then click on Plesk administrator user
Click on add new tasks on the screen of scheduled tasks and provide the required information, including command line or path to the command file
Select the frequency of task by providing information about time, date, and month by using calendar under the section of task priority
After selecting the frequency of tasks, just hit OK to complete the process, and you are done with the process

Setting Up the Cron Job in WordPress

As we know, WordPress is the largest platform for building websites. That’s why it uses its built-in features for regulating different tasks like sending emails, notifications, taking updates, deleting junk messages, and many others.But some people like to outsource the cron job feature instead of using a built-in feature. It is due to a lack of reliability, in their opinion.

Although you can also create a cron job on the WordPress site using cPanel, we will let you know about creating the cron job using the WordPress plugin.

Follow the below-mentioned steps for understanding the entire process easily:

Step # 1,

Login to your WordPress dashboard and go to the plugins area. You can see the “add new plugin” button, click on it, and search for WP Control Plugin.

Download and install the plugin.

Step # 2,

After downloading the WP Control Plugin, you can see the option of events under the tools tab in the WordPress dashboard menu on the left. Here you can see the list of cron jobs, but you can see it blank if you had never created the cron job before.
Click on the add cron event tab next to the cron event tab. Here you can see different fields like name of cron event, frequency, and date, etc. Provide the information as per your needs and hit the add cron event button.

Step # 3,

As you complete adding a new cron event, you can see a newly created event in the list under the cron events tab. But you can also see the error “None” under the action column. It means you don’t set the action for this cron event.

You can add the following coding in the PHP file of the theme just under “ function cw_function() {
wp_mail( ‘info@example.com’, ‘new cron’,!’ );
}

You can access the PHP file of the theme in the dashboard of WordPress and edit it accordingly. After adding the file, hit the save button, and you are done with the process.

Conclusion

It is easy to create a cron job for performing repeating tasks, but it requires little attention. It helps save time and helps in completing important tasks on time, like backup or sending notifications. If you follow the instructions provided above, you can easily do it.
Hopefully, all the discussions in the above article help you understand the process of creating a cron job.

How to Duplicate a Page in WordPress

How to duplicate a page in WordPress is indeed an important need which developers need in most of the scenarios? The actual page display on your website looks a bit dull. Right away you would like to change it with a new style, however on the one hand you would like to keep the reliability of the written content (you never know later on the old content is required). So the best method is to copy / paste and save all of the articles in the draft. Regrettably, this step does not ‘move’ or does not ‘include’ SEO optimization, page layouts, featured pictures, and other associated data.

How to clone a page in WordPress

How to clone a website next to a blog or a pre-existing page could be another option to generate a few tweaks in one copy so that you can compare it to the earlier version. At least many reasons exist and explanations why you will at some point duplicate WordPress posts or pages!

Challenges in WordPress duplicate page

The appearance of the specific page that has no changes at all is certainly boring in some of the situations. But there are challenges that must be faced when you want to replace the look of the current page with a new one, which is to keep the content in accordance with SEO rules and not change other settings that have been adjusted.

Usually website owners will use the manual method to do this. Unfortunately, the manual method can change the configuration and some other settings that are not compatible with the old page. Even so, WordPress users don’t need to worry, because there are several ways to duplicate WordPress page that you can easily use to copy all WordPress content, configuration, and appearance.

Duplicate a page in WordPress with easy steps that we are going to mention below.

How to duplicate WordPress Pages in 2 minutes?

Before trying the several ways to duplicate the WordPress post or page, you need to login to the WordPress dashboard using the admin account. Normally the WordPress websites can have the same dashboard url, like example.com/wp-admin

Here are a number of ways to make a duplicate WordPress page and to copy content or pages. You don’t need to use all of them, you can just use one method.

How can we Duplicate a WordPress Page Website with free Duplicate Post Plugin?

The Duplicate Post plugin you can use to clone pages or posts on WordPress. When using this plugin, you can set any part you want to copy, such as Title, Date, Status, Slug, Excerpt, Content, Featured Image, Template, Format, Author, Password, and others.

Copy WordPress Pages

You would have an option to control the privacy against this plugin for example, you can choose which users can copy WordPress pages?

wordpress duplicate page

Step 1:

Install Duplicate Post plugin which is created by Enrico Battocchi and this plugin has over 1 million active installations that shows the credibility for this site.

duplicate post

Step 2:

After the plugin is active, access ” Pages -> All Pages “. This plugin will bring up the Clone and New Draft options on WordPress posts or pages you will see.

duplicate a page in wordpress

Explanation:

  • Clone can be used to copy chosen posts or pages.
  • New Draft is utilized to copy a post and then open it for modifying.

Duplicate a WordPress Page with Duplicate Page and Post Plugin

If you want to copy page in WordPress in a very short time, then this plugin will make your life easy. The Duplicate Page and Post plugin works to make copies of pages or posts. This plugin only provides one function option, which is to make a copy of a page or post using just one click and then save it in draft form.

This plugin is not hard and features less than other plugins, however, it is sufficient to be used to duplicate pages or posts: make clone pages, posts, and particular custom posts. Here is how to utilize the Duplicate Page and Post plugin.

Simply, you will install it from WordPress directory and then activate it.

duplicate page wordpress plugin

As soon as the plugin is active, see ” Post -> All Posts “. This plugin provides the Duplicate option over a WordPress post or page.

Duplicate the WordPress Posts or Pages easily with Post Duplicator

Post Duplicator WordPress Plugin

The Post Duplicator plugin will help the users to duplicate the posts and pages without making many changes in settings. Same feature we have observed in the Duplicate post plugin. The main difference, this plugin directly produces a copy file that is then published without needing to go through the editing procedure first. So when you click replicate, a copy of the post will show up directly on the website.

Deploy and Activate Plugin

copy wordpress posts

After the plugin is active, go to ” Post -> All Posts “. There you will see the Duplicate Post option to copy a post or page.

how to clone a page in wordpress

Summary

Hopefully that with this guide, it is possible to duplicate WordPress posts as well as pages. Just stick to the steps we have defined so that the duplication procedure operates smoothly. Be sure to also employ the plugins carefully that we have pointed out. Pick the method and way which suits your requirements.

Because when you try to install a new plugin in an existing live site then sometimes the plugin may disturb the wp files and we may see database errors. So, it is a wise decision to arrange a full back-up before installing and activating the duplicate page WordPress plugin.

This was the easiest guide on “how to duplicate a page in WordPress”. After reading it carefully you do not need to buy service to duplicate the WordPress page in your website.

How To Make Websites Mobile Friendly

It is the necessity of websites to provide a user-friendly interface that enables visitors to find relevant information easily. It not only creates an attraction for readers but also beneficial to get high rankings in the search engine results.

Optimize The Sites for Mobile Devices

With the increase in mobile devices in recent years for web surfing, now web developers have to optimize the sites for mobile devices. It is projected that about 60% of internet users use mobile phones for web browsing.

Mobile Friendly Websites

The primary purpose to make mobile friendly websites is to provide layout as per the size of the device so that the users can find and read the content easily.

Improve Loading for Search Engines

Additionally, leading search engines like Google, Bing, etc. give preference to websites that are optimized for mobile. High rankings in the search engine results are the primary goal for every website, whether the site is about selling products online or providing general information to readers.

The following are the few tips that help the webmasters to make their WordPress website user-friendly and mobile-friendly as well.

Use Responsive Theme: (WordPress Theme)

It is practiced by bloggers and website owners to install the free version of the theme. Usually, the free versions come with bugs and malfunctions that could be a reason for slow speed. Additionally, free versions are not optimized for mobile.

Therefore, it is recommended to use a paid version that is designed by using light coding and optimized for mobile devices. Even if you install the free version, you have to make sure that the theme is optimized for mobile devices.

User-Friendly Design: (User Interface)

Web developers have to design the website in a user friendly interface. It offers not only easy to operate feature for desktops but also for many other mobile devices. It easy for visitors to access relevant information or product even by using mobile phones.

Try to keep the menu responsive and straightforward so that it is easy for mobile users to operate it without any complication.

Furthermore, the website must contain the feature to adjust the size and layout as per the size of the device. So, users can approach the content quickly and easily without missing any type of information.

Avoid Using Flash Elements

Usually, bloggers and website owners use flash to display photos in a slide show. But they don’t know that it slows down their website and make a negative impact on the rankings of sites.

Moreover, many android and iOS devices don’t support the use of flash. As a result, the webpage doesn’t open and display the error.

Therefore, it is important to make sure that the website doesn’t seem dependent on flash either for displaying the images or for adding animations.

Prioritize The Speed: (WordPress Optimization)

The site speed is not only beneficial to improve the rankings in search engine results but also enables mobile users to browse the site easily. The following are the few factors that are responsible for the slow speed of the website.

  • Hosting server
  • An excessive number of plugins
  • Themes with extreme coding lines
  • Number of widgets on the site

Therefore, it is recommended to consider the points mentioned above to improve the speed of the website. The home page of a website with an excessive number of posts is another factor that usually webmasters ignore.

Try to minimize the number of pages and keep them between five to ten posts. It not only helps to improve the speed but also provides a clean and attractive look to the homepage.

Use AMP: (Accelerated Mobile Pages)

Accelerated Mobile Pages (AMP) is an open-source project introduced by Google a few years before to improve the speed of the website on mobile devices.

It let websites to load only essential elements that are required to display the web page without losing the quality. AMP offers to load the web pages four times faster as compared to standard pages.

AMP works by eliminating the standard and heavy HTML coding that makes the speed slow. This technology is widely used by many known brands, including the New York Times, Amazon, Adobe, and many more.

Moreover, it helps to improve the rankings of the website in mobile search results and displays the icon of AMP with the site. It tells the visitors that this site is optimized for mobile, and most probably, they click and visit the site.

Usually, bloggers manage the blogs to earn through ads, and AMP offers ads specifically designed for mobile users. It is easy to upload on mobiles by using light coding without any impact on the quality.

Use CDN

The content delivery network (CDN) is a proxy-based network of data centers from around the world. The primary purpose of CDN is to reduce the load time and improve the performance of the website.

It saves a copy of the site over the data centers at different locations. As the client sends a request for the web page, instead, it is forwarded to the main server. This request is entertained by the nearest data center.

CDN first confirmed the latest version or any updates on site and compared it with the saved copy before delivering the information. It saves a copy of various essential elements of websites, including images, videos, databases, and many more.

Optimize The Font Size

Font size is an essential element of websites for both mobile and desktop users. Webmasters have to make sure that the font size is large enough that is easily readable on mobile and other portable devices. But they also have to make sure that it is not so large that mobile browsers can’t handle it.

Therefore, try to use an optimum size, and we recommend using 14X as the standard font size.

Compress CSS And Images

Compressing CSS and images is an excellent option to improve website speed. These elements acquire a substantial space of resources and slow down the site speed.

Compression not only beneficial to improve the site speed for mobile users, but it also provides a significant impact on desktop users.

Benefits To Make Website Mobile Friendly

As we mentioned earlier, site speed is an essential factor for getting higher rankings. Mobile users are increasing day by day, and if you want to get success, it is necessary to optimize the website for mobile users.

Reduce Bounce Rate

The bounce rate is an essential factor to know about the performance of the website. When a visitor comes on the site either by using a mobile phone or desktop, it spends time on it.

If it is easy for the visitor to find the relevant information or product, he stays for more time. Most probably, he visits more than one page. As a result, the bounce rate automatically reduces.

Websites optimized for mobile users are more likely to get more page views because users like to spend more time on a website with low loading time.

Improve SEO

Usually, website owners or bloggers have to invest a lot on SEO of websites in terms of time and money. It goes to scrap if they don’t optimize the website for mobile users. It is an excellent option to get an advantage over the competitors.

Search engines allocate high rankings to sites with mobile-friendly features and provide a chance to drive more organic traffic to the website.

Improve Conversion Rate

As the website get rankings in the search engine results, it generates high traffic to the site. It automatically helps to improve the conversion rate for both ads impressions and online selling.

It provides an excellent opportunity for online sellers to improve the sales graph and profit as well.

Conclusion

It is somehow tricky to optimize the website for mobile users. But, it will surely provide the real return of your efforts. Different tools are available over the internet that helps the users to find the user-friendly nature of the website for both desktop and mobile users.

In the above article, we explained the essential factors that are responsible for ensuring the mobile-friendly feature of the website. Hopefully, you get a lot of benefits from it.

See More

Essential Guidelines To Fix MySQL Extension Which Is Required By WordPress

Create Virtual Environment Python 3

Different methods to speed up websites Leveraging Browser Caching

If you want to leverage your browsing cache, you need to define for how long web browsers keep images and data that CSS & JS stored locally on the client’s browser. Using browser cache, the user’s browser will take less time as well as less data while browsing through the website. The leverage browser caches mean to speed up your word press website loading time. The websites that take less time in loading can be rank up easily.

What is Leverage Browser Caching?

Before we discuss the main points and tell you how to implement different methods, you need to know what is the leverage browser caching in WordPress means & how actually it works? Once we explain how the process works you can understand its benefits. 

When a person visits a page, the browser needs to download all the resources including images, gifs, videos, HTML, CSS & JS on that domain from the server. If someone visits the same website every day with different pages, the browser needs to download all the resources files again and again. To stop repeating this process, the browser uses a web cache. This is a special feature that all browsers used to temporarily store web page assets on the device’s local cache. This data or storage is called HTTP Cache or web Cache.

Following is the image that explains how a web cache actually works:

how a web cache actually works arz host

By using the web cache, not only the load on the server reduces but also bandwidth consumption reduces.

Following are some methods to leverage browser caching

Method 1:  (Leverage Browser caching using .htaccess)

Follow the following instructions step by step for the good results.

  1. First step is to the Cpanel of your website hosting account
  2. Now Go to the root folder of the website that need changes
  3. Open the .htaccess file with the file editor. In case, if you can’t find the .htaccess file check the hidden files settings as .htaccess file is hidden by default.
  4. Add the given code to the bottom of the .htaccess file.
  5. Add expiry header with a maximum expiry time
  6. Add cache control headers in .htaccess file
  7. Unset ETag headers
  8. Without making any other changes simply save the file
  9. Test the applied changes on your website.

A slight modification in the .htaccess file requires setting up the expiry time of Images and CSS files. These setting are found in the root of the hosting server. To boost your website performances change the expiry headers values.

customize header cache

Here is the code:

According to the above settings, the HTML of your website page expires after 600 seconds. You can also set CSS and JS settings to expire once a month.  It means if a user visits your website within a month, they don’t need to redownload CSS and JS assets again. You can set this expiry date up to 1 year, in case if there are no more changes that can be done within a year on your website.

This is one of the most effective ways to leverage browser caching for not only WordPress websites but also to the other frameworks.

Set Image files to the maximum expiry time

Set the images expiry time for more than one year for better results.

Add cache-control Headers

Add the following code in the file to set the cache-control headers.

cache control header

Code:

We already set the expiry dates in the code so you don’t have to add extra work.

Unset Etag header

The final step that is needed to be done is to do unset Etags settings.  As Etags are no longer necessary you simply need to unset them. Add the following code in .htaccess file to unset them.

header unset etag

Code:

Method 2: (Leverage browser caching WordPress using plugins)

There are different plugins available that can be used for caching such as WP Rocket, W3 total cache, and WP fastest cache.

Leverage Browsing Caching:

If you are looking for easy methods to leverage browser caching in word press websites, you came to the right place. Follow the following steps and let the magic work.

  1. Download the leverage browser caching plug-in from word press official website.
  2. Go to the dashboard of your WordPress website and then visit add new option from plugins e.g: Dashboard > plugins > Add New
  3. Upload the downloaded leverage browser caching plug-in from the computer
  4. Click Install Now
  5. Activate the plug-in and see the magic.

This is one of the easiest ways to speed up your WordPress website speed. It involves very little effort of yours and is highly recommended by Google.

WP Rocket WordPress Plugin:

WP Rocket is one of the fastest and most recommended plug-ins for WordPress websites. With the help of a few clicks, you can handle all your speed optimizations. It has the following features.

  1. File cache: enable the file cache to put fewer loads on the server.
  2. Lazy loading: when the user scrolls down, Images are only loaded where the images required.
  3. Static files compression (GZip): It is used to make the total size of the data smaller.
  4. Google font’s optimization: this feature loads heavier fonts quickly.
  5. Defer JS loading: pages load faster instead of waiting for assets to download
  6. DNS prefetching: reduces the time to resolve the sources of 3rd party content
  7. Minification & combination: Shrinking the file sizes and combining the text assets to deliver them faster
  8. Integrates & enables a CDN: a feature that helps heavier media to deliver faster

All the above features sound like gibberish to those who don’t know the power of cache. In reality, these superb features help to make your website load faster.

One of the best things about using this plug-in is that you don’t need to configure it.

W3 Total Cache WordPress Plugin:

This is the most popular plug-in. The only problem is, it needs all configurations. One needs to understand the WordPress to configure its settings.

Conclusion:

Above are some methods mentioned to leverage browsing caching. If you are interested in making your website faster, apply one of these methods for better results. Good luck

See More

Redirect HTTP To HTTPS Htaccess WordPress

70%OFF

Smart Sale

Hurry Up! Offer ends in
days 00 01 hrs 07 08 mins 00 01 secs 44 45
Buy Now
We are offering a Discount Promotion on All VPS. you can get upto 75% DiscountBuy Now
+ +