Category: PHP

How to Add Multiple CSS Classes in WordPress

  CSS play an important role in UI/UX Today we will learn how to add multiple CSS classes using WordPress function. We can design each WordPress post differently using the respective CSS classes.   STEP I:- We have to first define the classes as an array in the functions.php file under the child-theme folder. Let see how we define, it’s very simple. Classes names are (long-form-article, featured-story, interactive) for a single Div tag. STEP II:- After defining classes in the functions.php file under the child-theme folder. We have to now call them in the post_class function in Div tag. Let see how it

Read More »
Enable zip in cpanel

How to Enable PHP Extensions through cPanel

Friends, today we will talk about How to enable PHP extensions through cPanel. Last, to last week we published a post about How to enable PHP modules in WHM. So today we write this post because one of my subscribers requested for this post. In this post, we will learn how to install PHP Zip extension from cPanel. Sometimes these extensions are not installed/activated by default in cPanels, so we have to manually install it. Let see how we can enable PHP ZIP extension. Follow the below steps, screenshots are taken from Godaddy cPanel: STEP 1: Login to your website cPanel(Control Panel), Go

Read More »
PHP ZIP module banner

How to Enable PHP Modules in WHM

Hello friends, today we will learn about How to enable PHP modules in WHM(Web Host Manager). This problem WordPress beginner’s face while importing demo content on a Paid WordPress theme. Sometimes these modules are not installed/activated by default in cPanels that’s why we get the error, so we have to manually install it. Today, we are talking about this general error: PHP Zip Module. Yesterday, one of my friends installed a theme but when he started importing Demo Content he got the below error. Oops, Unyson Backup requires PHP Zip module but it is not enabled on your server. If

Read More »

How to resolve “This Page isn’t Working- HTTP ERROR 500”

Hello, friends today we will learn about How to resolve “This Page isn’t Working- HTTP ERROR 500”.   Last week we got this error while shifting one of my websites from one server to another. But no need to worry about that WordPress have this common error and we can easily resolve it. What we have to do is to follow these steps:   1. Deactivate all plugins First, we will try to deactivate all the plugins. Do you know guys how we can deactivate all plugins at a time? we can do this in both ways either from admin

Read More »
php_value memory_limit 512M

Increase WordPress Memory Limit using .htaccess

If you don’t have access php.ini file then no need to worry we can increase Memory_Limit in .htaccess file as well. Just copy this code and paste it to your .htaccess file. If you already have this code and nothing will change then try…

Read More »

HTTP to HTTPS Redirection Automatically Using .htaccess and web.config

Hello Friends, Today we will learn about “How we can Redirect visitors to our HTTP website to HTTPS“. If you have SSL Secure Certificate installed on your website, you can easily redirect visitors to the Secured version of your website(HTTPS) automatically. First, we have to know that where your website is hosted. Linux & cPanel If you don’t have a .htaccess file in the root directory of your website then you have to create a new file. If you don’t know how to create this, watch the video: Once you create the .htaccess file in the file manager, just copy

Read More »