How to remove the website field from WordPress comment form

In this tutorial, we are going to remove the Website URL field from WordPress comment form that appears at the end of each post. This can be useful to stop spammers from inserting their dumb links into your website.

Useful Read: How to disable theme and plugin editor from WordPress dashboard?

How to remove the Website URL field from WordPress comment form

How to remove the Website URL field from WordPress comment form

To Remove the Website field, paste the following code in Your functions.php file

//Remove Website URL field from WordPress Comment Form
add_filter('comment_form_default_fields', 'remove_url_from_comment_form');
function remove_url_from_comment_form($fields){
	if(isset($fields['url']))
	unset($fields['url']);
	return $fields;
}

 

How to change the number of posts displayed on your WordPress blog page

Question:
How can I change the number of number of posts displayed on my blog page in WordPress?

Answer:
By default, WordPress blog page show 10 posts per page. To change the number of posts displayed, login to your WordPress dashboard and follow the steps given below:

1. Go to Settings » Reading

2. Change the “Blog pages show at most” number from 10 to anything you want.

3. Hit ‘Save Changes’ button. And that’s all.

change-the-number-of-posts-displayed-on-your-wordpress-blog-page

Now, your WordPress blog page will display the number of post you have set.

How to add a Facebook Like Box to your WordPress blog without a plugin

Facebook Like box is a widget provided by Facebook which allows you to attract and increase more Page likes from your own website. In this tutorial, I will show you ho you can add a Like Box to your WordPress blog or Website without using any plugin.

Adding a Facebook Like Box is quite simple:

Step 1: Go to Facebook Developer’s Like Box Page

Step 2: Type the URL of your Facebook page inside “Facebook Page URL” input box as show in the figure.

how-to-add-a-facebook-like-box-to-your-wordpress-blog-without-a-plugin-step-1

Step 3: Click on Get Code button, select the IFRAME tab and copy the code

Step 4: Now, Login to you WordPress dashboard, go to Appearance » Widgets and drag and drop the Text Widget into your WordPress sidebar.

Step 5: Paste the IFRAME code inside your Text Widget and click on Save Changes button. That’s it.

Note:The Facebook Like Box feature is designed only for Facebook Pages. It will not work with personal profile.

How to enable user registration in WordPress

Question
How can I enable user registration on my WordPress website/blog?

Answer:
By default, user registration is disabled in WordPress. In this tutorial I will show you how you can enable user registration for your WordPress blog or website. To enable the user registration follow the steps given below.

1. Go to Settings » General

2. Check the option that says “Anyone can register”.

3. Click on “Save Changes” button.

enable-user-registration-in-wordpress

Once, the user registration is enabled, you will be able to see a “Register” link on WordPress login page as show in the image below.

enable-user-registration-in-wordpress-register-link

Note: In case, you want to disable the user registration, then just uncheck the “Anyone can register”

Installing a WordPress Plugin – Beginners guide

Plugins are one of the most important features of WordPress. A WordPress plugin is piece of software used to provide additional functionality to your existing WordPress Website. There are more than 30000 plugins in official WordPress plugin’s directory.

In this tutorial, we will see how you can install a new plugin on your existing WordPress website or blog.

Useful Read: How to install a WordPress theme? – Beginners guide

There are two ways to install a install a WordPress plugin:
1. Automatic Installation
2. Manual Installation

Automatic Installation

Login to your Dashboard and select ‘Add New’ option from plugins menu on the left side of Dashboard (Plugins->Dashboard).

add-new-plugin-link-dashboard

You will be redirected to a plugin installation screen like the one in the above image. On the installation page type the name or tag to search the plugin and hit the search ‘search plugin’ button.
Then, you will see a list of plugins similar to example shown below.

Install-W3-Total-Cache

Select a plugin as per your requirement and click install. A popup will appear asking you for confirmation.

plugininstallpopup

Press ok. WordPress will install the plugin and will display a success message. If any errors occur during installation it will output error messages.
After Successful installation, click ‘Activate Plugin’ link and you are done with the installation.

Manual Installation

In some cases, the plugin you want install may not be available in the WordPress directory. Because, it may be a Premium plugin you have purchased or it is a custom made plugin. In such a situation, you need to install the plugin manually.
To do this, first download your plugin’s zip file to your desktop. Then, from dashboard select plugin->add new and select, the ‘upload’ option as shown in the screenshot below,

wp-plugin-manual-installation-upload-zip

Now, from upload page, click on ‘choose file’ button, browse and upload the zip file.

wp-plugin-manual-installation-install

After successful installation you will see a screen like one below. hit the activate button. Now, you have installed the plugin.

plugin-activate

I hope that this tutorial was help. In case, you have any queries, feel free to comment.

How to Install WordPress Locally on PC using XAMPP

WordPress is one of the most widely used Content management System (CMS) and a blogging platform. And the beauty of the WordPress lies in its simplicity. You don’t have to be a kickass Web Developer to to setup a WordPress website or blog.

Most of web hosting services offers pre-installed WordPress, all you need to do is create a database, provide the username, password, email address etc and WordPress will be installed automatically.

In this tutorial, I am going to show you how you can install WordPress on your computer using Xampp. If you want to install a new theme or a plugin for your website/blog, it is always better to first try it out on a local testing environment.

Step 1: Installing XAMPP

Before we move forward towards installation, we must setup a local server. To do this you need to download,Xampp. Their are different versions for different OS platforms. choose the one for your Operating System and download the installer.

Then run the installer, select your language, select the folder where you would like to install Xampp and click the install button. And that’s it.

Once you are done with installation start Xampp Control Panel with help of a shortcut created on your desktop and make sure that Apache and MySQL modules are running properly.

Step 2: Setting up MySQL database for WordPress

WordPress needs a MySQL database to store all the information related to website or blog such as posts, pages, comments, attachments etc.

To Create a MySQL database, open your web browser, type http://localhost/phpmyadmin an hit enter. This will take you to the PHPmyadmin settings page. On this page, click on database link, it will open option to create a new database.

how-to-install-wordpress-locally-using-xampp-setting-up-mysql-database-step-1

 

Write the desired name of your database and click the “create” button. For this tutorial, I will create database with name ‘testing’ you can use anything you want.

how-to-install-wordpress-locally-using-xampp-setting-up-mysql-database-step-2

 

Now that we have created a database, we can move forward to actual installation process.

Step 3: Downloading and installing WordPress

Before we start installation we need to download th latest copy of WordPress installation. You should always download WordPress installation files from official WordPress website. To get the fresh copy of WordPress click here. At the time of this post, we have version 3.9.1 available.

Unzip the downloaded file, the actual installation folder is inside the folder with version number.

how-to-install-wordpress-locally-using-xampp-extracting-zip-step-1

Now, Copy the installation folder inside computer drive >> xampp >> htdocs folder. For me it is “C:xampphtdocs”. Once you have moved the installation directory go to your web browser and type http://localhost/wordpress/ in URL.

how-to-install-wordpress-locally-using-xampp-final-1

 

On this page, WordPress will display a message asking you to create a configuration file. click “Create a configuration file” button.

how-to-install-wordpress-locally-using-xampp-welcome-message

You will be greeted with a “Welcome to WordPress” message. click “Let’s go!” to proceed.

how-to-install-wordpress-locally-using-xampp-database-configuration

The WordPress will ask you for database details, In the database name option we will enter “testing” the name of database we have created earlier. In User Name option type “root” and leave password blank. You don’t need to change database host and table prefix. Click the “Submit” button.

how-to-install-wordpress-locally-using-xampp-run-the-install

If all of your details are correct, it will display “Ready to install” message. click on “Run the install” button.how-to-install-wordpress-locally-using-xampp-Information needed

Next, WordPress will ask you to enter site title, username, password, email address etc. Enter the necessary details and hit “Install WordPress” button. And that’s it.

how-to-install-wordpress-locally-using-xampp-success

After installation, a Success message will appear on with a Login button. Click on the button and use the credentials to login into your dashboard.

Use the URL http://localhost/wordpress/wp-admin to login to your local WordPress environment.

I hope this tutorial is useful for you. In case, you have any queries feel free to comment.