Changing or updating your version of PHP for WordPress

It’s a good idea to change or update the version of PHP if you want to keep your website running smoothly. First of all we will figure out the reason why we need to upgrade and how to upgrade our server to PHP 7.

Why we should upgrade WordPress to PHP 7q1

If you are running a WP site on your server, you may installed PHP already. So why we need to upgrade when everything seems to be fine. There are some popular reasons for this questions:

  • The plugins and scripts you have set up are no longer adaptable with the version you are using
  • The minimum requirements to run WordPress have been increased.
  • There are security holes in your using version and the upgrade includes a patch.
  • You need to change to a stable version
  • You expect to test a different version on a local installation of WordPress
  • There are conflict between the version you are using and the plugins, themes or scripts that you have installed

These are valid reasons, but before you update PHP, you should care about and plan for upgrading drawbacks.

Possible side effects include …

The main thing you should focus on before upgrading is that not all your plugins, themes and scripts are not necessary to adaptable all with the latest version of PHP you want to use. If the issue exists, your site could be broken partly or completely.

There are some variation of improvements and possible fixes, security issue and structures to code in each version of PHP. Some updates are less inclusive than others while many versions contain changes and improvements that make certain parts of older versions no longer in use.

In some cases, you will not receive any supports for versions like PHP 4 and older. If you use plugins, themes or scripts that rely on outdated PHP code and you upgrade to newer version of PHP, the changes from the upgrade would make your old code to be unadaptable and then break. It does not happen regularly, but it’s important to review the changes you hope to see in the version of PHP that you want to use before you finish the upgrade. There is some plugins available for doing a scan of your site automatically and determine whether your site would be adaptable when you update.

Checking PHP Compatibility

You may look for some plugins that apply your quest for PHP compatibility and here are some options for you:

  • PHP compatibility checker: this plugin allows you choose a version of PHP and your site will be scanned for compatibility issues. It has a report as well so you know what need to be fixed.
  • PHP Pseudo Compiler: it can help you check for undefined functions or methods
  • Error Log Monitor: you can enable a log to keep track of all errors to help you know what needs fixing if there are errors.

If you find out that a plugin, theme or script you are using isn’t compatible with your expected version of PHP, you can contact with author or developer to help resolve the issue.

Changing your php version

When you tested your WordPress site completely for compatibility, you can change the version of PHP you are using via SSH or cPanel. If it doesn’t meet your need, you can contact your hosting provider for updating or arrangements.

Upgrade or switch via SSH

When the SSH demands for upgrading or installing other versions of PHP are different relies on the type of server have not one set of commands can be applied widely. You should remember that if you want to use the commands provided in these links, you need to remove the outdated PHP package from your server that no longer need.  You can visit https://www.crucialhosting.com/knowledgebase/change-php-version-htaccess-command-line for detail information on how to change the version of PHP for web requests.

Updating or changing PHP in cPanel.

If you want to pick the PHP version for your server with a few clicks, you can do so by blogging into your cPanel account. It seems to be impossible with all types of hosting but if you see a PHP version manager button in control panel, you can make the switch whenever you are ready. It may be in different positions depending on your host but you need to click PHP version manager and navigate directly to position where your site is located that you need to upgrade too. Choose one of PHP version from the list that meet your need then click Save buttonq2

That’s everything you need to do. If you are success, you will receive a message noticing that your upgrade was successful.

Advertisements

Full Guide to Install WordPress in Other Languages

Have you ever want to use WordPress in other languages? In fact, this powerful platform is fully translated into more than 65 languages, and then you can use it in your native language. And in this article, I will walk over the way how to install a WordPress site in other languages.   z1

Getting Started with WordPress in Other Languages

Before starting a blog, you have to get a WordPress hosting. Bluehost is one of the good recommendation for you. This is a large WordPress hosting providers in the world.

Once you sign up with a WordPress host, you can install WordPress next. z2

Choosing a Language During WordPress Installation

WordPress 4.0 offers the new and improved internationalization support which allows you to choose a language for your WordPress site during the installation.z3

This will be quite useful when you need to know clearly about the installation instructions, as you can put it in your local language. But if you don’t choose the language when installing WordPress, you can change it anytime under the WordPress settings.

Changing Language in WordPress

It is super easy to change the language on your WordPress website. The only thing you have to do is simply visit the Settings > General section on your WordPress dashboard, and then scroll down to the bottom of the page. Here you can see options to choose the site languagez4

Although WordPress can be translated into more than 162 languages, you just only see 62 languages which are full translated.

If the language you find is not in the list, this doesn’t mean it is not available and you can use it. I will show you how to install language packs in WordPress.

Manually Installing WordPress Translation Files For Other Languages

A gettext system is used for translations in WordPress, including localization and internation. Volunteer users in the world will use a main .pot template file to translate WordPress into their languages. It will create two files for each language. They are Portable Object format file with .po extension, and machine Object file with .mo extension. A .mo file is required for your language. You can go to the WordPress translation teams page to find which WordPress translation is available for your language.   z5

After that, click on the percentage value to see the status of translation progress in the language you want. Then click on the current WordPress version.

Now you will reach GlotPress. It is a web based app used by WordPress team to translate WordPress projects. The thing you need to do is scroll down to the bottom until you see the export section. Open the dropdown and choose Machine Object Message Catalog (.mo), and then click on Export link. z6

Next repeat the process above, but select Portable Object Message Catalog (.po), and click the Export link.

After downloading and unzipping the pack of language on your computer, you have to connect to your site via FTP. once connected, upload that file to /wp-content/language folder.

When uploading the file has been done, return to the WordPress admin area. Next visit Settings > General page and go down to the site language option. Now you can pick the language you just uploaded as it will appear under the installed languages.z7

Using an English Admin Interface in Multilingual WordPress

You don’t want to change the entire WordPress site into your local language, and still keep the interface in English. Sometimes it may be helpful if your admins are not familiar with other installed languages or developers can access to it.

In this situation, you need to install and activate the plugin called English WordPress Admin. Upon activation, this plugin will add a language switcher on the WordPress admin bar. So each user can simply take the mouse over this language switcher and choose the admin interface language.  z8

Creating a Multilingual WordPress Website
It is quite easy to use different language in WordPress, but what should you do if you want to create content in multiple languages?
It is hard to set it default, but there are some plugins which enable you to create and manage multilingual WordPress sites. Of course all of them allow you to create content in many different languages and make it easier for your visitors to switch languages.
One of the popular multilingual plugins is WPML plugin (WordPress Multilanguage). This premium plugin is used by thousands of websites around the world to create user-friendly multilingual websites on the WordPress platform. z9

If you are looking for a free plugin, let’s checkout the Polylang plugin.

Help Translate WordPress in Your Language

When you can’t find the translation for WordPress in your language, you can create one. WordPress is an open source software, so you can drive it. This means that all available translations you can see are created by other users around the world. check out the Translating WordPress website for more info on how to contribute a new language.

That’s all about how to install WordPress in other languages. I hope that this can help you a lot in this process. If you have any questions about it, please leave it in the comment below. Thanks a lot!

 

How to resize images in WordPress

1

Load speed is one of  the main indicator for search engines optimization and keeping readers to link with your site. Large images can make your site look more attractive; however, they will slow down your site load speed. So if your WordPress images too large, let’s think about resizing it. There are many ways to resize images without losing the image quality. It may be manual or automatic. Which way chosen is up to you? In the today’s post, I will walk over these ways to help you resize all images on your WordPress site to boost the site performance. Let’s get started!

But first…

Why should you crop and optimize my images?

It will be nothing to say if you have a large high-quality image. But what happens if your image doesn’t look well or it is too heavy, taking more time to load. You will definitely lose a huge number of viewers. Once access to your site, they desire to look at useful content with eye-catching related images. Low-quality image is a great limitation for your site. Additionally, according to the latest report, users tend to abandon websites that have to load more than three seconds. I think these issues are adequate for you to focus on the images uploaded to your site.

To solve this, you can optimize your images by cropping, resizing them. At least these techniques are important steps to create better visual content, accelerate the uploading process, and reduce the bandwidth. And your speedy sites will attract more and more readers.

Now take a look at some methods to help you resize your images easily.

Resize Images Before Uploading

Optimizing your images before uploading them to the WordPress site to ensure everything work well. Why not? Reduce all images into the most effective size can save time, as well as significantly cut down the storage for them. You can do it online or directly on your computer thanks to the help of powerful tools.

Online

Resizing your images online may be tricky, because it affects directly the quality and clarity of images. When you search it on Google, it may show hundreds of tools, even many of them are free. There are a wide range of online tools that seem to do a quite good job of it.

Bulk Resize Photos

2

Bulk Resize Photos comes with the easiest interface. The only thing you have to do is drag your images onto the site as many as you want. And then choose the way to scale it. You can do it in five ways: percentage, longest side, width, height, or add the exact size. This tool is user-friendly, so you can scale all in a matter of seconds with no uploading necessary.

In addition, you are given advanced settings which allow you to change the format of images (from JPG to PNG, and vice versa), adjust image quality, set the background color, or add padding to prevent stretching.

BIRME

3

BIRME, standing for Batch Image Resizing Made Easy, is another choice for you. It is quite simple yet flexible. Similar to Bulk Resize Photos, drag your images onto the page, then set the new width and height you want. Depending on the size option you choose, it will scale or crop to fit your dimensions. If not, you can choose the automatic options by clicking on them.

Also, you can add some border with desired thickness or change the quality settings (for JPG format). To complete the resizing process, click on the Save .Zip button, all resized images are downloaded as a single Zip file.

Resize Pic Online

4

Another drag-and-drop resizer is the tool named Resize Pic Online. To do it, upload your images, select the width from 30px to 1500pz, the quality (low, medium, high, best), and then choose the file type (remained file, convert to JPG or PNG).

On My Computer

With some well-known tools installed on your computer, you can resize images directly on your device. There are several options such as Photoshop, Gimp, and many more. But they may be a bit overkill to only resize an image.

Photoshop may be popular choice. It is considered the premiere image-editing software. It’s powerful and intuitive, with full of great features. With easily-recognizable interface and custom settings, you can play with your images. To do this by Photoshop, follow the steps below:

  • Launch Photoshop
  • Click File in the Photoshop top menu
  • Choose Open from the drop-down menu
  • Select your image
  • Click the Open button
  • Click Image in the Photoshop top menu
  • Choose Image Size and then select the desired width and height
  • Check “Constrain Proportions” and “Resample image
  • Click the OK button

Load Images And Resize Them

Using The Visual Editor

The visual editor allows you to edit and format the blog content, including images. However, it has a limitation that the incremental percentages for resizing are limited. Moreover, the results are inconsistent and unpredictable.

Using The HTML Editor

When adding an image in the WordPress HTML editor, several size options are shown for resizing. It may be “Thumbnail”, “Medium”, “Large”, and “Full Size”. But sometimes Large or Medium may not be options for your image if it is too small.

Look at the HTML for image, you will see 2 parameters for changing:

width=”XXX”

height=”YYY”

These are your two key numbers. Change them to the size as you want to scale your images.

Resize Images Automatically

All methods above can deliver exact images you want but it will consume your time. Instead of that, you can use WordPress plugins to resize images automatically. Here are 3 popular plugins that can optimize your WordPress images.

WP Smush.it

This is an effective solution to compress your images automatically without affecting the quality of image. Once installing it, it will automatically optimize all existing images and new images. In addition, it also helps your page reach the higher rank in search engines.5

The plugin is very easy to use. You just only need a single click to resize the image. Even with advanced feature, your images are automatically smashed. It is flexible to help you control over your website.

EWWW Image Optimizer

EWWW Image Optimizer can optimize your images automatically as soon as you upload them to your blog. It will convert the format of the image files to the one that exhibits the smallest size.

For JPG and PNG files, the plugin applies reductions with options. It loads your images faster and helps the WordPress website work better.6

With a speedy website, visitors will be attracted and the heavy traffic may be observed and generate revenue. The smaller size of images also improves efficient backups.

ShortPixel

A simple plugin with a clean interface will be a good solution for you to optimize your images. You have to subscribe to ShortPixel to get the API key. Upon subscription, you will earn 100 free credits per month. Plus, this offers an option to keep EXIF data in images which is a very useful feature for photographer.7

With a speedy website, visitors will be attracted and the heavy traffic may be observed and generate revenue. The smaller size of images also improves efficient backups.

ShortPixel

A simple plugin with a clean interface will be a good solution for you to optimize your images. You have to subscribe to ShortPixel to get the API key. Upon subscription, you will earn 100 free credits per month. Plus, this offers an option to keep EXIF data in images which is a very useful feature for photographer.

8

This is a premium plugin. You can optimize 10,000 images with $9.99. It may be a nice solution for you.

Which method do you choose when uploading images on WordPress sites? Please share it in the comments. Or if you use any other methods, be sure to leave it below.

 

 

How to use Font Awesome with WordPress

Currently users tends to be focusing on visual design, apart from content that they want to looking for. Traditionally designers usually individual images for icons in the specific parts of the website, such as search bar, loading icons, and many more. Focus on responsive design, many stunning iconography are available to help you make the site look well. Font Awesome is one of them. In this article, I will provide a full guide of using Font Awesome with WordPress.

What is Font Icons?y1.png

Font Icon is a set of symbols that allows you to display fully responsive and customizable icons without utilizing additional images. And they can be resized by using CSS. In a website, you can use them for shopping cart, navigation menus, address, so on.

Why is Font Icon useful?

  • Fully responsive: Font Icon is vector so it can be scaled to any size without loss of the quality.
  • Be able to be styled, positioned and manipulated: You can set the color, the background color, or text alignment, and many more
  • Highly compatible with many browsers

Why Font Awesome is highly recommended?

Here is an example of Font Awesome icons that you always bump into when visiting any site.

There are many font icons but Font Awesome is a popular choice among them. Because it offers a couple of advantages:

  • Easy to grasp (within a minute) without any design experience
  • More than 630 icons covering all kinds of different things
  • Retina display ready
  • Set icons to any size, style through things like CSS
  • Scalable, great vector graphics
  • No fee
  • Be able to animate the icons
  • Supports several brand logos like facebook, twitter, etc.

Adding Font Awesome to your WordPress

1.   Method 1: Add Font Awesome by using plugins

This is the easiest way to get Font Awesome. There is a couple of plugins that can help you do it, especially the free plugins like Better Font Awesome. With this plugin, you are given a wide range of icons without any code modification. I think that for beginners it may work well.

  • Install and activate the plugin
  • Visit Settings > Better Font Awesome to configure the plugin settingsy2.png
    • You can add font icons by using shortcodes:

    [icon name=”rocket”]

    [icon name=”cloud”]

    [icon name=”headphones”]

    Also, you can add the icons in the post editor.

    • Click the Insert Icony3.png
      • Add shortcodes or HTML of the icon

      It’s very simple, right?

      1.   Method 2: Add Font Awesome CDN to WordPress

      This plugin is hosted and sponsored at KeyCDN with 25+ servers. There are many great benefits you can get when using the CDN service.