How to Open WordPress Menu Link in New Window / Tab?

Most of the Developers aren’t aware of the fact that WordPress comes with a bunch of built-in features, hidden inside the Screen Options tab within the dashboard. In this tutorial, we are going to take a look at a simple trick which allows you to open your navigation menu items in a new tab i.e. it adds a target=”_blank” property to the navigation menu items.

Useful Read : Replace Default WordPress jQuery Script with Google Library

To open your menu items in a new tab follow the steps given below:

Step 01: Navigate to Dashboard >> Appearance >> Menus.

How to make a WordPress menu item open in a new window/tab 01

How to make a WordPress menu item open in a new window/tab 01

Step 02: Click on the Screen Options tab on the top right corner or your screen.

How to make a WordPress menu item open in a new window/tab 02

How to make a WordPress menu item open in a new window/tab 02

Step 03: Under Show advanced menu properties section and check Link Target option.

How to make a WordPress menu item open in a new window/tab 03

How to make a WordPress menu item open in a new window/tab 03

Step 04: Now, expand a menu item you wish to open in new tab and check Open link in a new window/tab option.

How to make a WordPress menu item open in a new window/tab 04

How to make a WordPress menu item open in a new window/tab 04

Step 5: Hit Save Menu Button

How to make a WordPress menu item open in a new window/tab 05

How to make a WordPress menu item open in a new window/tab 05

Rename the Uncategorized Category in WordPress

By default, WordPress comes with a built-in category called Uncategorized. It works as the default fallback category. When you publish a post without selecting a category, WordPress automatically assigns that post to Uncategorized  category.

Useful Read: How to Display a Read More link in WordPress Excerpts

I prefer to rename this category to something else, as the name Uncategorized sound unprofessional. To rename this category follow the steps given below.

  1. Login to your WordPress Dasboard.
  2. Navigate to Posts >> Categories.
  3. Move the mouse over Uncategorized.
  4. An edit link will appear. Click the edit link
  5. Change the name and slug.
  6. Hit the Update button
Rename the Uncategorized Category in WordPress

Rename the Uncategorized Category in WordPress

How To Display Tagline in WordPress

Tagline is a single line description of your WordPress website or blog. In this post, we are going to learn to edit and display this tagline.

Quick Tip : Disabling Comment Notifications in WordPress

To add or edit the tagline follow the steps given below,

1. Login to your WordPress Dashboard.

2. Point the mouse over Settings option on left menu of the dashboard.

3. Click on General Settings option.

4. Look for tagline option and change it with your own custom tagline.

5. Hit Save Changes button.

Display Tagline in WordPress

Display Tagline in WordPress

To display the tagline on your website place the following code within your template file where you want to display it.

<?php bloginfo( 'description' ); ?>

Note : The above code will output i.e. echo the tagline. If you want to return the tagline to store it inside a variable, use the following code,

<?php echo get_bloginfo( 'description' ); ?>


How to Change Your Default WordPress Post Category

By default, WordPress comes bundled with a category called Uncategorized. It acts as a fallback category. WordPress assigns this category to a post at the time it is published, if no other category is selected. In other words, it is the default category for WordPress.

If you want to change default category from Uncategorized, to something else, you can do that using Default Post Category option from Dashboard.

To Change the Default Category follow the steps given below,

1. Login to your Dashboard.

2. Navigate to Settings >> Writing

3. Look for Default Post Category option.

4. From the dropdown menu, select a new category and hit the Save Changes button.

How to Change Your Default WordPress Post Category

How to Change Your Default WordPress Post Category

Useful Read:

How To Remove WordPress Version From The Admin Footer

How to create custom post type in WordPress

Custom Post types are content types which can store different types of contents. By default, WordPress comes with five built in post types,

  1. Post (Post Type: ‘post’)
  2. Page (Post Type: ‘page’)
  3. Attachment (Post Type: ‘attachment’)
  4. Revision (Post Type: ‘revision’)
  5. Navigation menu (Post Type: ‘nav_menu_item’)

You can add new custom post types to WordPress using the register_post_type() function.  It accepts two parameters, first a unique name for the custom post type and second is an array of arguments which sets the options for the custom post types.

Useful Read: How To Add Custom Post Types To At A Glance Dashboard Widget In WordPress

In this tutorial, I am going to create a post type called Book. For this tutorial, I am going to put all the code in functions.php,  but you can also create your own custom plugin if you want.

To create a custom post type, paste the following to your functions.php. 

function ccw_book_init() {
	$labels = array(
		'name'               => _x( 'Books', 'post type general name' ),
		'singular_name'      => _x( 'Book', 'post type singular name' ),
		'menu_name'          => __( 'Books' ),
		'add_new'            => __( 'Add New' ),
		'add_new_item'       => __( 'Add New Book' ),
		'new_item'           => __( 'New Book' ),
		'edit_item'          => __( 'Edit Book' ),
		'view_item'          => __( 'View Book' ),
		'all_items'          => __( 'All Books' ),
		'search_items'       => __( 'Search Books' ),
		'parent_item_colon'  => __( 'Parent Books:' ),
		'not_found'          => __( 'No books found.' ),
		'not_found_in_trash' => __( 'No books found in Trash.' )

	$args = array(
		'labels'             => $labels,
		'public'             => true,
		'show_ui'            => true,
		'rewrite'            => array( 'slug' => 'book' ),
		'has_archive'        => true,
		'menu_position'      => 5,
		'supports'           => array( 'title', 'editor', 'thumbnail')

	register_post_type( 'book', $args );

As you can see, we have added various arguments to the custom post types with this code. So, let’s run over those arguments,

labels – An array of labels for the new custom post type.

public – Controls the visibility of your post type for both front end and back end.

show_ui – Determines whether to display a UI on the dashboard for managing custom post type.

rewrite – An array of arguments which allows you to set slug and permalink structure for the custom post type.

has_archive – Enables post type archives.

menu_position – Determines the menu position for the custom post type on the dashboard.

supports – An array of arguments which determines the features that are available on edit screen of the custom post type.

Once, you have added all the code to your functions.php file, go back to your dashboard and refresh the screen, you should be able to see the custom post type on the left panel of the dashboard.

In the next tutorial, we will take this to the next level and add a custom taxonomy to this custom post type. In case you have any queries feel free to comment.

How to install a WordPress theme – Beginners guide

A WordPress theme is a set of PHP files, used to change the look and functionality of a WordPress website. There are more than 2500 themes in WordPress Official Theme directory, which are absolutely free to download and use. You can also purchase paid themes from online market places like Themeforest or Mojo-themes.

In this tutorial, I will provide step by step instructions on “How to install a WordPress theme?”.

Useful Read: Installing a WordPress Plugin – Beginners guide

There are two ways to install a WordPress theme.
1. Using Search Option.
2. Using Upload Option.

1. Using Search Option:

Log into your WordPress dashboard and click on Themes link from Appearance menu on the side panel of the dashboard.


Now, you will be redirected to the themes page where you will be able to see the currently installed themes. To add a new theme, click on Add New Option on the top of this page.


Type the keyword or name in the search box to search the theme from WordPress theme directory. You can also use Feature Filter which allows you to search the themes based on various attributes like Layout or color.


Now, Browse the result, select an appropriate theme for your website and click the Install button under the theme you want to use. You can also use Preview option to see demo of that theme.


As soon as you click the Install button, WordPress will download and install the theme. And You will get a success message similar to one below.


Hit the Activate button on this page. And that’s it. You can visit home page to see how it looks.

Using Upload Option:

In some cases, you may want to install a theme which is not listed in WordPress theme. It can be a paid theme you have purchased from online market place or a custom theme made from scratch. In such situations, you cannot use Search Option. To install such theme you need to use the upload option.

To upload a theme using upload option, login to your dashboard, select Themes link from Appearance and click on the Add New button. On the Add New page, click on the Upload Theme link.


On the Upload page, click the Choose file button, select archive(Zip) file of the theme and click Install button


Within few seconds, WordPress will upload and install the theme. After Installation, click the Activate button under the ‘installation successful’ message. And you’re done.


I hope, the post was helpful. In case, you have any questions, please let me know through your comments.

How to enable or disable ‘Smiley’ feature in WordPress

WordPress comes with built-in smilies which automatically converts emoticons like 🙂 and 🙁 to graphical images. It’s a great way to convey your emotions in writing and improve your post visually.

By default, whenever you type a smiley text in your post it is converted to a graphic image when you publish your post. However some of us may want to turn off this feature.

To do this, follow the steps given below,
1. Login to your WordPress dashboard and navigate to Settings => Writing.

2. Then, Look for Convert emoticons like 🙂 and 😛 to graphics on display and uncheck that option.


3. Finally, Hit ‘Save Changes’ button at the bottom of page.

To, enable the smilies Check the above option and click “Save Changes” button.

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

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

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.


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.


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

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

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.


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.


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