Posts

,

How to Resolve 404 Error in WordPress Site

There are some common issues that the beginner face in WordPress. “404 Error” is one of them. But, don’t be scared. Like every issue and bug, this problem is also easy  to resolve.

Why 404 Error happened?

There are many reasons that’s why “404 error” shows  in your site. Like- May be you typed a url that doesn’t existed or changed or maybe your Permalink has been changed.

Now let’s see how to solve the issue.

Solution 1: Fix 404 Error by changing Permalink

Go to your WordPress Dashboard and click on Settings->Permalinks. From the Common Settings select Post Name.

 

Change Permalink Type

 

Click on “Save Changes” Button.

This will update your permalink settings which works for most of the 404 error. In case this doesn’t works, you can follow the second method.

Solution 2: Update .htaccess file

If first solution doesn’t work, try to update your .htaccess file. Login to your CPanel and connect to your WordPress root directory. Where you will find a file named .hcaccess. Download this file.

Update .htaccess file

 

Check if there has the following lines of code. Add the code if not exist.

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

 

How To Add a Password Protected Post or Page on WordPress

Do you want to add a Password Protected Post or Page on your WordPress site? It’s quite easy to do. You just need 30 seconds to make WordPress Page or Post to Protect by Password.

Making a Page and Post Password Protected in WordPress is quite same as shown below.

First of all, go to your Page or Post Visibility option. Right to Visibility option click on Public.

 

Visiblity Settings

 

There are three option, from which select Password Protected. Then, input the password for this post/page to view in future.

 

Make Post Password Protected

 

Finally Publish/Update your Page or Post.

You will have to login with the Password to view this page or post in future. Your content may look like

 

How To Add a Password Protected Post or Page on WordPress

 

Input the password for this post and click Enter to view the post.

 

I hope this will help you to create a Password Protected Post or Page on WordPress website. If you like this post you may also like Code Astrology Blog.

 

How to Add an Image to WordPress Sidebar Widget

Nowadays, WordPress is the most popular CMS (Content Management System) across the web. But, the beginner sometimes falls trouble in doing basic task in WordPress. Adding an image to sidebar Widget is one of those issues that beginner googling to learn. In this article I’ll show you how to add an image to your WordPress Sidebar Widget.

Adding an Image to WordPress Sidebar Widget can be done in three ways.

  • By WordPress Image Widget
  • By WordPress Text Widget
  • Using a Plugin

I’ll discuss all the three methods here.

Method 1: Adding Image By Image Widget

Adding an image by image widget is available from WordPress 4.8 which is as simple as adding a media files to your sites.

First of all, head over to your Dashboard->Appearance->Customize

 

Adding an Image to WordPress Sidebar Widget

 

Then click on Widgets.

 

Configuring Widget

 

Now select the Sidebar. Remember here, sidebar varies with themes.

 

Select Sidebar

 

Now, select Image to show image in Sidebar Widget.

 

Select Images for Sidebar Widget

 

Now select the Image that you want to show in Sidebar Widget. Now, there are three ways to show image. Like – you can show image

  • From a link of your site or others
  • By uploading a new Image or
  • By using an existing image from your Media Library

 

I’m showing you three ways to set Image. First of all select the Image Title.

 

Select Image

 

Adding Image From Link

Click on Add Image Button.

 

Add Image From Link

 

Now click on Insert from URL

 

Click On Insert from URL

 

Now Insert your URL here.

 

Insert your image URL

 

And click on Add to Widget button at the bottom of the screen. Finally, Publish the Widget.

Adding a New Image From Desktop

Click on Add Image and go to Upload Files->Select Files

And from here choose your files from your desktop.

 

Upload New Image From Desktop

 

Then select the files from your local drive and upload the picture.

Use an existing image from your Media Library

You can use Image from existing media library of your site. Click on Add Image button.

 

Add Image From Link

 

Then click on Media Library and select the image you want to show in Sidebar Widget.

 

Add Image From Media Library

 

Method 2: Adding Image By Text Widget

You can also add image to your sidebar by Text Widget. Head over to Appearance->Widgets

 

Add Image By Text Widget

 

Then click on Text and select the sidebar where you want to show Image.

Remember: The sidebar varies with your WordPress themes.

 

Add Image By Text Sidebar Widget

 

After selecting sidebar click on Add Widget button. Now select your Text Title, Text Description and then click on Add Media Button to add Image.

 

Edit details

 

Now select your Image. Here you select your Image from a link, upload a new one or choose from your media library(See above). I’m showing here uploading a new image from local drive.

 

Select Image File

 

After selecting Image file select Image Title, Alt and Description. Then click on Insert Into Post button.

Upload Image

And finally Save the Widget.

 

Save Image Widget

 

Method 1: Adding Image By Plugin

You can add Image to Sidebar Widget using Plugin. There are a few Plugin to add Image on Sidebar Widget. I recommend using Image Widget for this action.

See How to Manage a WordPress Plugin to learn about installing a WP Plugin.

 

Install Image Widget Plugin

 

Now, go to Appearance->Widget

 

Add Image By Text Widget

 

Now, select the Sidebar Widget Position.

 

Install Image Widget Plugin

 

Click on select Image button from Default Sidebar option.

 

Select Image

 

Now select the Image from your Media Library or Upload a new one. Edit the details of the image.

 

Edit details

 

Finally, Save the Widget.

I hope this article will help you to add an Image to WordPress Sidebar Widget easily. If you like this article you may also like Code Astrology Blog.

 

How to Easily Customize CSS in WordPress

Are you looking for a way to customize your default theme’s CSS in your WordPress site? In this article I’ll show you three ways to Easily Customize CSS in WordPress site.

You can add custom CSS in WordPress mainly in three ways.

  • By WordPress Themes Customizer
  • By Using CSS Custoizer Plugin
  • By Child Theme

Method 1: Add CSS by Themes Customizer

The most easiest way to add custom CSS is using the themes customizer to customize CSS on WordPress. You don’t need additional plugin  to perform this. Just go to your WordPress Dashboard and click on Customize from Appearance.

 

Customize CSS using theme customizer

 

Now, from the new page click one Additional CSS from the left panel of the dashboard.

 

Customize CSS using theme customizer

 

Input the CSS code here and publish.

 

Customize CSS using theme customizer

 

Thus you can add custom CSS on your site. The most important part of using theme customizer is that, you can see the changes live.

Method 2: Add Custom CSS using a Plugin

If you don’t want to customize your theme then there is an alternative to add custom CSS. You can use a plugin to add custom CSS in your site. There are several plugin’s to do that. Some of the renowned plugin is listed below.

  • Simple Custom CSS
  • WP Add Custom CSS
  • Simple Custom CSS and JS
  • My Custom CSS
  • Custom CSS Pro

In this article I’ve used Simple Custom CSS to add customize CSS on my site. Let’s see how we can do this.

Install The Plugin

Here before I’ve mentioned couple of plugins. Use one of them to add custom CSS on your site. I’ll show you how to install and use Simple Custom CSS on WordPress.

First of all, Go to your WordPress Plugin directory from Dashboard and then install the plugin. To get installation help you may read about How to Manage a WordPress Plugin.

 

Install Simple Custom CSS to customize css

 

Activate the newly installed Plugin.

Add Custom CSS

After activation navigate to Dashboard->Appearance->Custom CSS and from here you can add your CSS code.

 

Add Custom CSS

 

Click on Update Cusom CSS button and see the changes.

Method 3: Add Custom CSS by Child Theme

If you need several lines of CSS say 1000 lines, you better use a child theme. Besides, if you want more secure way that will not effect your live site, use a child theme.

Use One-Click Child Theme to create a child theme in a single click. Install the plugin and activate it.

Now go to Dashboard->Appearance->Child Theme and create a child theme.

 

Create a Child Theme

 

Now, Navigate to child theme editor to add Custom CSS code. For this, head over to Dashboard->Appearance->Editor

 

Switch to Child Theme Editor

 

So those are the ways to add Customize CSS in WordPress easily. I hope this piece of article will help you to customize your site dynamically. If you have problem or idea beyond this article, leave a comment below.

How to Fix the Error Establishing a Database Connection in WordPress

If you are using Web for long time then you might have seen the the Error Establishing a Database Connection in WordPress. Sometimes for a beginner it seems scary a little. In this guide I’ll show you how to fix the ‘error establishing database connection’ error.

Why cause Error Establishing Database Connection?

There are many reason behind this error. First of all, lets see why this error occurs.

  • Wrong Database Login Credentials
  • Corrupted Database
  • Corrupted WordPress files
  • Overloaded Database Server

How to solve Database Connection Error in WordPress?

There are some unique methods by which you can fix your database connection error on WordPress. Follow the steps below.

Step 1: Repair your WordPress

First of all, try to repair your WordPress. To repair your WordPress download the wp-config.php file from WordPress root directory and add the line below.

 

define('WP_ALLOW_REPAIR', true);

After adding the lines replace the file with newly edited file from your site. Next, go to the link yoursite.com/wp-admin/maint/repair.php

You will be redirected to a page like-

 

Repair Database

Select anyone from the option to repair your Database. Hope this may work if you have a error with database. If the error still alive follow step 2.

Step 2: Check your WordPress credentials file

Now check if your wpconfig.php file is well configured. Simply this one is the most important file to connect your site to Database. Check the settings that if it is corrupted.

/** The name of the database for WordPress */
define('DB_NAME', 'database_name');

/** MySQL database username */
define('DB_USER', 'database_username');

/** MySQL database password */
define('DB_PASSWORD', 'database_password');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Remember: Here DB_HOST name varies with your Host Provider.

If everything is ok in this file then be sure that your database credentials is free from causing this error.

Step 3: Check your MySQL Server

If step three doesn’t work for you maybe there is a error with MySQL Server. Your database may be busy or overloaded that can’t take loaded properly. This occurs mainly when you are in shared hosting or too much traffic. For this try to use a dedicated hosting.

Sometimes this problem if you have a permission issue with your database. To check whether you have the necessary permission connect your Database through PhpMyAdmin.

Create a file named test.php in WordPress root directory and open the file through text editor. Add the lines below in your newly created php file.

<?php
$link = mysqli_connect('localhost', 'username', 'password');
if (!$link) {
die('Could not connect: ' . mysqli_error());
}
echo 'Connected successfully';
mysqli_close($link);
?>

Make sure you have replaced username and password with your ones. Save settings and go to the URL yoursite.com/test.php. If you get a message “Connected successfully” then your login details are correct.

But if get a message saying  “Could not connect: Access denied for user ‘username’@’localhost’ (using password: password)” then the problem lies in here.

Create a new username and password and update the file in WordPress to get rid of this issue.

So, this is all for today. I hope this article will help you fixing the Error Establishing a Database Connection in WordPress. There similar articles on WordPress issue. You can read Fix WordPress Session Cookie Error, Fix White Screen Of Death in WordPress and Common Errors in WordPress and How to Fix Them.

How to Fix – Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.

If you are using WordPress for a long time then you might face the problem login to PhpMyadmin. It keeps saying “Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.” In this article I’m going to show you how to fix Session Cookie error on WordPress.

You can fix this easily. Just follow the steps below.

Step 1: Configure your config.inc.php file

First of all check out that is your server files is properly configured. If not make the changes like below.

$cfg['Servers'][$i]['auth_type'] = 'cookie';

Step 2: Clear the Cookies from your browser

Now go to your browser settings and clear the cookies from it. Navigate to inspect elements on your browser. If you are using chrome click Ctrl+Shift+I.

 

Inspect

 

Then go to application tab and clear the cookies and caches from browser and click the Clear site Data button. See the screenshot below. I have used it for my Chrome.

 

Clear cookies from browser

 

After clear cookies you can also clear your browser history.

Now try to login your PhpMyadmin. Hope this will work for your Failed to set session cookie error. If you like this article you may also like Fix White Screen Of Death on WordPress and Fixing the Common Errors in WordPress

,

WooCommerce Min Max Quantity & Step for Single Products

Are you looking for a easier way to control WooCommerce Min Max Quantity & Step for Single Products? Yes, I’m going to tell you about how to control WooCommerce Cart quantity for single products.

 

Why WooCommerce Min Max Quantity & Step Control Single?

In your WooCommerce store there may some products that customer needs to purchase in bigger quantity. For instance, if you have a Wholesale store customer may purchase 50 pieces of shirt. Then how he increase the number of cart quantity to 50?

Yes, we all know in WooCommerce we increase the quantity in cart one by one. That’s take much time. But you can control the step in cart using WooCommerce Min Max Quantity & Step Control Single plugin. It’s totally free in WordPress plugin archives.

Also you can set the minimum purchase quantity and maximum purchase quantity with this free plugin. If you want to control WooCommerce Min Max Quantity & Step for global products read this article.

Step 1: Install and Activate the plugin

First of all, install WooCommerce Min Max Quantity & Step Control Single. For this, go to WordPress Dashboard of your site. Then navigate to Dashboard->Plugins->Add New and type the plgugin name in the search field. From couple of plugins install the right one.

WooCommerce Min Max Quantity & Step Control Single installation

 

After installation activate the newly installed plugin.

Note: You can also read how to install and manage a WordPress plugin.

Step 2: Configure the plugin

Now, go the the single product page which you want to configure. You can navigate to Dashboard->Products->All Products and edit the products you want.

From Product Data click on Min Max & Step and configure the cart quantity.

 

WooCommerce Min Max Quantity & Step Control Single Configure

 

Min Quantity: From Min Quantity input box give the Minimum number of products customer can purchase for this product.

Max Quantity: From Max Quantity input box give the Maximum number of products customer can purchase for this product

Quantity Step: In Quantity step input field input the increment and decrements step for this single product.

Step 3: Publish the page

After configuration publish the products and view the product. See how does it works below gif file.

 

WooCommerce Min Max Quantity & Step

 

Configure Messages

You can also change the notification messages when customer add products to cart. Just navigate to Dashboard->Products->Min Max Step Quantity

WooCommerce Min Max Quantity & Step

 

So, this is all for today. I hope you have understand how to control WooCommerce Min Max Quantity & Step for single products. If you face any problem leave a comment below.

,

How to Add Social Media Icons To WordPress

Do you want to increase visitors on your WordPress site? There are many ways to do that. One of them is to add a social media icons to WordPress site. It’s easiest and most important way to increase visitor on your site.

In this article I’ve used Social Media Share Buttons & Social Sharing Icons to create the social media icons. Let’s see how does it work.

Step 1: Install and activate the plugin

First of all, install Social Media Share Buttons & Social Sharing Icons from WordPress plugins archive. You may go through how to Install a WordPress plugin.

 

Social Media Share Buttons & Social Sharing Icons

Social Media Share Buttons & Social Sharing Icons

 

Step 2: Configure the plugin

Please configure the plugin following the sub-steps below.

Select the the social media

After activating the plugin, head over to Dashboard of your site. Then, from the left panel click on Ultimate Social Media Icons.

 

choose which icons to share

Choose which icons to share

 

Then, there will be several settings to configure. Click on the first item saying ‘Which icons do you want to show on your site?’. From there choose the social media icons that you want to show in your site.

 

Choose icons

 

Select the action

Now click on second question from the same page as shown in the picture below. There will be several checkbox from which choose the action you want. For instance, tick the third checkbox from Facebook option if you want to share your your blog with Facebook Friends.

 

share with facebook

Share with facebook

 

Choose the Position

Then from the third option choose your desired position. There are many ways to choose position. You can show the share icon through widget area, define the location on the page, place it via shortcode or show icons after post. Choose your best one.

 

Choose the position

Choose the position

 

Here I’ve marked widget, so I need to select to widget area.

Choose sidebar area to show icon

Choose sidebar area to show icon

Choose widget area to show icon

Choose widget area to show icon


Step 3: Publish the post

At last, publish the post. You are done. See how does it look in the left sidebar.

You may like to read how to Add Click To Tweet Button on WordPress and The top 9 Social Media Plugins of WordPress.

I hope you have got how to add Social Media Icons to WordPress site. If you have any question, let me know that in comment section.

Change the WooCommerce Add To Cart Text

Are you fed up with the default add to cart button on your site? If yes, then follow this article. In this step by step article I’m going to show you how to change the woocommerce add to cart text.

Change the WooCommerce Add To Cart Text for Single Product page

You can easily change the add cart button text editing your functions.php file. Just add the code below in your themes functions.php file. Also you may navigate to Your_Site->wp-includes->functions.php

 

 /**
Change the Button label.
 */
function thenga_single_add_to_cart_text( $text ) {
    return __( 'Buy', 'textdomain' );
}
add_filter( 'woocommerce_product_single_add_to_cart_text', 'thenga_single_add_to_cart_text', 10, 1 );

If you need another label than replace ‘Buy’ with your selected one.

Change the WooCommerce Add To Cart Text for Archive Products/Shop Page

You may need to change the add to cart button label for archive products. To change the button label for archive products simply add these line below in your functions.php file in your themes directory.

/**
Add to cart button label for archive products
*/

add_filter( 'add_to_cart_text', 'woo_custom_product_add_to_cart_text' );
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_product_add_to_cart_text' );
  
function woo_custom_product_add_to_cart_text() {
  
    return __( 'Buy Now', 'woocommerce' );
  
}

If you want to use any other label then change the word ‘Buy Now’ to your preferred one.

Change for variable Product

You can change add to cart button for variable product for variable product. Just use the code below.

/**
Change add to cart button for variable product
*/
add_filter('variable_add_to_cart_text', 'my_custom_cart_button_text');

function my_custom_cart_button_text() {

        return __('Select Product', 'woocommerce');

}

 

Change the WooCommerce Add To Cart Text by Plugin

If you are not familiar with coding you can do all the stuff with plugin. There are couple of plugins to do this. Among them I recommend you using WooCommerce add to cart Text change plugin. With this plugin you can change your default WooCommerce text on various page like shop page, archive page and product page. There is a advantage that you can use only cart icon on add to cart button.

 

woocommerce add to cart text change

Dashboard of woocommerce add to cart text change

See how does it looks after changing the selected option.

 

woocommerce add to cart text change

Changed Add To Cart Text

Related article: If you don’t know how to install a WordPress plugin please see Managing a WordPress Plugin.

I hope you have got the point to Change the WooCommerce Add To Cart Text. If you have any related issue leave a comment below.

, ,

How to Replace Gutenberg With Classic Editor

Have you upgraded your WordPress to 5.0? If yes, then you may notice some changes in the upgraded version like in the editor section. Since Gutenberg is set as default editor in the latest version of WordPress, some are trying to back to classic editor. In this step by step guide I’m going to show you how to Replace Gutenberg With Classic Editor.

Do you want to disable Gutenberg and back to Classic editor for your WordPress site? You can use classic editor in two ways.

  • Disable Gutenberg & use only Classic editor
  • Use Gutenberg along with Classic WordPress editor

However, in this article I’m showing how to disable Gutenberg and use only Classic editor. In another article I’ll show how to use Classic editor along with Classic WordPress editor.

Disable Gutenberg & use only Classic editor

Follow the steps below to disable Gutenberg and use only the Classic editor. Remember, you can come back to Gutenberg whenever you want.

Step 1: Install and Activate Disable Gutenberg Plugin

First of all install Disable Gutenberg plugin. To install go to WordPress Plugins directory from your Dashboard. For this you can navigate to Dashboard->Plugins->Add New and in the search box type the keyword Disable Gutenberg.

You will see a couple of plugins. Install the right one like given in the screenshot.

 

Disable Gutenberg plugin

Disable Gutenberg plugin

 

After successful installation Activate the plugin from there. You can also do it from Plugin section of WordPress Dashboard.

 

Notice: If you don’t know how to install a WordPress Plugin, you can go through How to manage WordPress Plugin.

 

Step 2: Complete Disable Gutenberg from Settings

Now head over to Disable Gutenberg Tab from Settings of Dashboard. You can also navigate to Dashboard->Settings->Disable Gutenberg

 

Complete disable Gutenberg

Complete disable Gutenberg

 

From this page tick the Checkbox named for Complete Disable. This will Disable Gutenberg everywhere of your WordPress site. Finally click on the the Save Changes button.

Doing this you will be back to old Classic editor of WordPress.

If you want to switch to Classic editor but keep the Gutenberg read disable Gutenberg and keep the WordPress Classic Editor.

This is all for today. I hope you have got how to Replace Gutenberg With Classic Editor. If you have any issue around this leave a comment here.

,

How to Clone WordPress with Wp Clone in a Single Click

There are several plugin to clone your WordPress site. Some of them are paid and some are free to use. But most of the time beginner fall in trouble with the procedure of taking backup and restore WordPress site. Today I’ll show you how to clone a WordPress site in step by step.

What is cloning? Why should you clone your site?

If you are using WordPress for a long time then you may fall in trouble with your site. It may be hacked, infected by malware or any types of issue with your site. In that case your all valuable information may be lost.

For this reason you should make a backup of your WordPress site to make it sure your site is secured to restore anytime.

There are couple of plugins to backup and restore WordPress site. In this article I’ve used Wp Clone By Wp Academy

that is easy to use. Now let’s see how to clone your WordPress site. Why I’m using Wp Clone?

  • Because it is totally free
  • Easy to use
  • One click backup and restore feature
  • No need to sign up

Step 1: Install and activate Wp Clone

First of all go to WordPress plugin’s directory and search for the keyword Wp Clone. To do so navigate to Dashboard->Plugin->Add New.

Install and active Wp Clone

Install and active Wp Clone

A list of plugin will be available among them install and activate Wp Clone By Wp Academy.

If you don’t know how to install a plugin you can see our previous tutorial about How to Manage a WordPress Plugin.

Step 2: Create a backup of your site

Creating a backup is so easy that a beginner can easily manage this plugin. To create a backup just head over to Wp Clone from Dashboard. Also you may navigate to Dashboard->Wp Clone.

Create a backup

Create a backup

From the new page select the checkbox called Create Backup and click on Create Backup button. It will take some time upon your site size. If your site is large than you may take a custom backup. For example, if your site have some video file of about more than 1 GB then it may take a bit more time to create a backup. To reduce the backup size and required time just exclude those video files from backup.

After a successful backup you will be redirected to a page that says Backup Successful! You can see a backup url that you can use to restore your site.

Step 3: Restore from backup

You can Restore from backup in two ways.

  • From the zip file given in the table
  • From the backup url address

 

⇒ Restore backup from table’s zip file

To restore backup from the zip file shown in the table just tick the checkbox called Restore Backup. Then select the checkbox field I AGREE and finally click on Restore Backup button.  A popup message will appear asking restore permission. Allow the permission. Restoring the backup may take some time upon your backup size.

Restore backup from zip

Restore backup from table’s zip

After a successful restore page will reload automatically including a message Restore Successful!

 

⇒ Restore from the backup link

Restore from respected backup link is alike the previously described process. To restore from the respected backup link just copy the backup link url and paste it in box called Restore from URL. You can get the link from the tables column named log. Right click on that and copy that link address (Here I’m using chrome. So screenshot may changes upon your browser or browser version)

Restore backup from link

Restore backup from link

So this is the easiest way to clone a WordPress site. I hope you’ve gotten the procedure. If you found a more easy way to create backup and restore that please let us know so that we may update. Have any question? Leave a comment below.

 

,

How to Install and Manage WordPress Plugin – Beginner’s Guide

Managing a WordPress plugin is so easy but a beginner may face complication. In this step by step guide we will show how how to Install and Manage WordPress Plugin for beginners.

If you are using WordPress for a long time then then you’ve come across the time that some plugins we use regularly and some are less necessary to keep it in site. Some becomes unused and there are other plugins that we shift in. So we need to deactivate and uninstall those unused plugin.

How to Install a WordPress Plugin

You can Install a WordPress plugin in two ways. You may install the plugin from WordPress plugins page also you can directly install zip file of a plugin.

1. Install from WordPress Plugin’s Directory

Installing a plugin is a so easy task. Simply go to plugins page from Dashboard. Navigate to Dashboard->Plugins->Add New

Here in the search Search Plugin box type the plugin name you want to install.

 

Install a plugin

Install a plugin

 

Some plugins related with that keyword will be shown. Install the preferred one and click on Activate button.

 

activate plugin

Activate plugin

 

Here I’ve used Woo Product Table Plugin that are awesome to create WooCommerce Product Table.

 

2. Install a Zip file Manually

To install a plugin from a zip file, navigate to Dashboard->Plugins->Add New->Upload Plugin

Here click on choose file and select the file from your storage.

 

install from storage

Install from storage

Click on Install Now after the file is selected .

 

install now

Install plugin

 

Then click on activate to activate the plugin.

 

How to Uninstall a WordPress Plugin

To uninstall a  WordPress plugin first navigate to Dashboard->Plugin->Installed Plugin and from here click on the plugin to uninstall.

 

deactive plugin

Deactivate plugin

 

Here we’ll deactivate Akismet Anti-Spam plugin. So simply click on deactivate. Remember deactivate won’t make uninstall your plugin. It only close down its activity/functionality on WordPress. You need to go one more step to delete that if you found that plugin inappropriate for your website.

To delete the plugin from WordPress click on delete right to plugins activate option.

 

delete plugin

Delete plugin

 

How to Deactivate/Delete all Plugin at once

Times come up when you need to delete all plugin or  some plugin at once. Using the bulk action you can easily deactivate and delete all or some of your plugin as you want. Just go to plugins page from Dashboard.

Navigate to Dashboard->Plugin->Installed Plugin. Here appear a list of your installed plugins. You can see a checkbox left to the plugins name. Tick the check boxes which you want to deactivate/delete. Then  click on Bulk Actions drop-down menu. A list appear including Activate and Deactivate option. Select Deactivate and click on apply right to the drop-down menu.  Thus you can Deactivate your selected plugins.

 

bulk deactive plugin

Bulk deactivate plugin

 

If you wish to Delete those plugin select Delete from the drop-down menu and click apply.

Drop from Database

After deleting plugins sometimes there may additional file created outside the plugin folder. So it’ll be better to delete them  from database. To delete from database simply go to your phpmyadmin. Before changing anything make sure you have backed up your database.

Go to your database and  tick the checkbox you want to delete the database relate with. And from below the table click on With selected text-box. A drop-down menu will appear there from which select Drop.

 

drop database column

Drop database column

 

A warning will be given from which choose Yes. Now your selected database table will be dropped and deleted.

 

Confirmation delete database

Confirmation delete database

 

So managing a WordPress plugin is so easy, right? If you have a particular question about managing a plugin leave a comment bellow.

I hope you have got how to install and manage WordPress plugin. If you like this article you may also like Must have free WordPress Plugin for your site.  Have any question about managing a plugin? leave a comment below.

, ,

How To Fix White Screen Of Death Of WordPress

If you’re using WordPress for a long time then you may come across the term named The White Screen Of Death (WSOD). This is a one of the worst error that a beginner falls in and get in deep trouble. Following some steps this error can be fixed. Today we’ll go through the possible ways to Fix White Screen Of Death error in WordPress.

First let’s have a look why this problem occur. The WSOD can cause for some couple of reason. Probable reasons are listed below.

  • Poor memory limit
  • Incompatibility between Themes or Plugins
  • Syntax error

 

In five steps we’ll try to Fix White Screen Of Death issue.

  1. Increase Memory Limits

  2. Disable Themes and Plugins

  3. Fix in Syntax Errors

  4. Enable Debug Mode

  5. Check File Permission

1. Increase Memory Limits

Most of the time we use a shared hosting server that are given a lower memory to function properly a for a wide range of plugins or themes. Then the exhausted memory causes this problem.

To resolve this problem you need to increase the memory. Locate your wp-config.php file using your FTP manager and edit this file. Add the code given below to the file.

define(‘WP_MEMORY_LIMIT’, ‘64M’);

If this doesn’t resolve the problem you can increase memory limit through .htaccess file that are in your sites root directory. Simply add the following line in your .htaccess file.

php_value memory_limit 64M

If you have issue with poor memory hope this’ll Fix White Screen Of Death issue.

 

2. Disable Themes and Plugins

Sometimes this problem may cause for incompatibility of themes or plugins. To find the culprits you’ve to do the followings.

First of all deactivate all your themes installed in WordPress and refresh the page where the problem occur. See whether the problems fixes or not. If it is ok then the problem lies in your themes. To find the individual one causing problem activate your theme one by one. After activating the theme if the White Screen Of Death occurs again then the theme is responsible for causing the error.

After you find the accused theme for the error you can contact with it’s developer to solve this issue.

Same problem may lies in for a specific plugin. Solve for this issue is same as for theme. Follow those steps to find the theme responsible for the error.

3. Fix in Syntax Errors

If you use a poorly coded themes or plugin that may also cause the The White Screen Of Death may occurs. When there is a character less or more than it demands then the error occurs. If the error is relate to wp-config.php or functions.php then find the associated file by FTP manager and look into that if there is a blank line before opening or after closing a php tag. Delete those blank line and saving the file reload the page. Hope this will fix the issue if it relates with Syntax Error.

4. Enable Debug Mode

If you failed to detect the problem lies in then enable  WP_DEBUG feature to find it. Open your wp-config.php file through FTP manager once again and add the line below

define('WP_DEBUG', true);

define('WP_DEBUG_LOG', true);

define('WP_DEBUG_DISPLAY', false);

 

Save the file and reload the page. Now you will be given the clue where the problem hidden in. Locate that file and if you are familiar with coding a bit then resolve the issue

5. Check File Permission

If all the attempts go in vain then check your file permission. A wrong file permission may cause this error. Check and reconfigure your file if it have any issues. For instance

  • Change File Permission value to 644
  • Folder Permission value to 755

 

We know that this is one of the most confusing errors of WordPress. But we hope that one of the solutions above will help you to Fix White Screen Of Death Of WordPress error. If you find this article useful that stay tuning with Code Astrology blog.

, ,

Common Errors in WordPress and How to Fix Them

Sometime we face problems in our WordPress site. Today i’ll discuss three common error of WordPress and possible ways to fix them.

How to fix WordPress Syntax Errors

Most of the time a beginner face the syntax error. It’s a common problem in WordPress. Most of the time the problem caused in php file. When there is a missing syntax like semicolon, colon,underscore or any types of syntax that are used in php we get a error message on browser. If you face the same problem don’t be panicked. It’s easy to solve .

( ! ) Parse error: syntax error, unexpected ‘,’ in C:\wamp64\www\test_site\wp-content\themes\twentyseventeen\functions.php on line 376

There is a syntax/parse error in my twentyseventeen theme’s functions.php file on line 376.

So we’ll locate functions.php file find the problem and fix it.

syntax error

Syntax error


Here in the function.php’s 376 number line there is an additional comma(,) that is causing the error. Just remove the comma(,) and save the file. Then reload the page. And it works fine.

How to Fix 404 Not Found Error

 

Fix in Permalinks

Most of the time this error is caused for your permalinks structure. If the problem caused in permalinks then simply navigate to Dashboard->Settings->Permalinks. Set the permalinks type to Post name as shown below and save changes.

Permalinks structure

Permalinks structure


Hope this will work.

Edit .Htaccess

Sometimes this problem is caused for .Htaccess file in your theme. Modifying that file may solve the problem. Make your .Htaccess file like shown below.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /test_site/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /test_site/index.php [L]
</IfModule>

# END WordPress

Note: Here tests_site is my site directory on localhost. Use your own.

How to Fix Connection Timed Out Error

Sometime we face this error that say Connection Timed out. This may cause for exceeding maximum execution time but no response from server.

May be you are using a shared bandwidth that are slowing down your server. In that case upgrade your hosting plan.

Sometimes it may caused for a plugin. To solve this deactivate your plugin one by one and detect where it lies in.

Increasing your php memory may solve the issue. Just go to  wp-config.php file and add the line below.

define( ‘WP_MEMORY_LIMIT’, ’64M’ );

 

To get more tips and tricks like this stay with Code Astrology.

 

, , ,

WooCommerce Custom Taxonomy – Adding And Customizing

WooCommerce Custom Taxonomy is the feature to show extra product data based on a class. It may be your product color, size or may be style.

 

What is WooCommerce Custom Taxonomy/WooCommerce Custom Field?

Most WordPress beginner face conflict between Custom Taxonomy and Custom Field. So let’s clear the conflict in a brief.

First of all, the both items are used to show extra product data. But there are some types of data we use for each product individually like product title, price, e-mail, maps. In that case use Custom Field.

On the other hand, sometimes we need to classify a group of product like color, size, category etc. Use Custom Taxonomy to classify a group of product.

So you can use WooCommerce Custom Taxonomy and WooCommerce Custom Field to show extra product information. Use Custom Taxonomy to show the info of a group of product and Custom Field to show individual info of a single product.

However, this article is about using Custom Taxonomy. If you want to know more about Custom Field see How to Use Custom Fields?

 

How to add WooCommerce Custom Taxonomy?

Adding a WooCommerce Custom Taxonomy requires a plugin. There are some plugin to perform that. Among them I suggest to use Custom Post Types and Custom Fields creator – WCK as it is user friendly.

Now I’ll show step by step how to add and show Custom Taxonomy in WooCommerce.

Step 1: Installation the required plugin

First navigate to Dashboard->Plugin->Add New and in the Search Plugin text-box type WCK. There will appear some plugin. Among them install and active Custom Post Types and Custom Fields creator – WCK.

 

install custom field creator

Installation of custom field creator

 

Step 2: Create Custom Taxonomy

Follow the steps below to create custom Taxonomy

  • Navigate to Dashboard->WCK->Taxonomy Creator
  • From here create a Taxonomy Name (The name of the taxonomy. Name must not contain capital letters or spaces.)
  • Input the Singular Label
  • Input the Plural Label
  • Select Attach to option. Also Select product if you want to add the taxonomy for product.
  • Select Hierarchical true

And finally add the entry.

 

create taxonomy

Create custom taxonomy

 

I want to add custom Taxonomy to my product to show the products color information. So in the picture given above I’ve added a Taxonomy named color and attached it to product.

Step 3: Add product

Now head over to Dashboard->Product->Add New (or edit an existing one)

Input the Product Name in Add New Product text-box.

 

add product name

Add product name

 

Step 4: Add Product image

Head over to sidebar and click on Set product image from product image section.

 

set product image

Set product image

 

Click on Upload Files->Select Files and select the image file for your product.

After selecting the image file click on Set product image button as given in screenshot.

 

upload product image

Uploading product image

 

Step 5: Input the Taxonomy for product

Here the created value taxonomy was Color (in step 2). So at the sidebar there will be a section called Color.

Now we’ll input the value of color for this product. To input the color name click on +Add New Color and input the value in the text-box. Finally click on the Add New Color button.

 

input color name

Image input color name

 

Now click on Publish button from top right sidebar.
Click on View Page to see the changes done.

There is a plugin named Woo Product Table Pro by which you can show the Custom Taxonomy in a Product Table in a dynamic way. Using the plugin the product table may look like

 

 Color variation in product table

Color variation in product table

 

In the table you can see a column red marked Color showing the color of different product.

So isn’t it easy to make WooCommerce Custom Taxonomy and show the Custom Taxonomy in product table. Whatever I know making some easy tasks beginner falls in problem. If you face any problem please go through the comment section.