What’s New in WordPress 4.0 “Benny”

Version 4.0 of WordPress, named “Benny” in honor of jazz clarinetist and bandleader Benny Goodman.

  • Manage your media with style
  • Working with embeds has never been easier
  • Focus on your content
  • Finding the right plugin

Please check the blow video by kimmimebaby

“What’s New in WordPress 4.0 “Benny” – 11 New Features Found”

Please find more details https://wordpress.org/news/2014/09/benny/

How to Disable WordPress Admin Bar for All Users Except Administrators

I am working on new public domain website http://www.forefingerfirst.com/ where people can only able to vote after FB login. So i have done customized the easy facebook login plugin.

But then we are facing the issue that once user login with FB. He/She was getting Admin bar. So i have search for solution and below is step for same.

Just open function.php from our current theme and add below code

add_action('after_setup_theme', 'remove_admin_bar');

function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {

Disable Admin Bar for All Users

If you want to disable it for all users, then simply put use this code in your theme’s functions.php file

/* Disable WordPress Admin Bar for all users but admins. */

How to Add Widgets to WordPress Theme’s

There are really three main parts to introducing a footer sidebar/widget area in your theme:

  1. Registering the Sidebar(s) in the WordPress Theme
  2. Inserting the Sidebars In the WordPress Theme
  3. Putting some style into the sidebars
WordPress has introduced a few new functions recently which makes it hard to write one tutorial that will cater for every theme out there. I have broken this tutorial into smaller sections to cater for the various different themes.
Keep a backup copy of your “functions.php” and “footer.php” file just in case you make a mistake when making the code changes.Keep a backup copy of your “functions.php” and “footer.php” file just in case you make a mistake when making the code changes.

Adding Footer Widget to a Modern Theme

Open function.php

search for “register_sidebar”


        'id' => 'sidebar1',
        'name' => __('Sidebar 1', 'adap'),
        'description' => __('The first (primary) sidebar.', 'adap'),
        'before_widget' => '<div id="%1$s">',
        'after_widget' => '</div>',
        'before_title' => '<h4>',
        'after_title' => '</h4>',

Paste it

        'id' => 'yoursidebar',
        'name' => __('Your Sidebar Name', 'adap'),
        'description' => __('Your Sidebar Desciption', 'adap'),
        'before_widget' => '<div id="%1$s">',
        'after_widget' => '</div>',
        'before_title' => '<h4>',
        'after_title' => '</h4>',

Show the widget area in your theme

Put below code where you want to add widgets

<div id="ClassofSidebar"> <!-- for your Designing Purpose -->

Style the widget area to your liking

Create Class for “ClassofSidebar” in your style.css


You are ready to use your new widgets


Be Happy

How to make your WordPress Website Secure

You have find many discussion about WordPress is not secure or easy to hack. I will share some of plugin which can make your website more secure.

Google Authenticator

The Google Authenticator plugin for WordPress gives you two-factor authentication using the Google Authenticator app for Android/iPhone/Blackberry.

Download here

Limit Login Attempts

Limit the number of login attempts possible both through normal login as well as using auth cookies.

Download here

BackWPup Free – WordPress Backup Plugin

Schedule complete automatic backups of your WordPress installation. Decide which content will be stored (Dropbox, S3…). This is the free version

Download here

Disclaimer: You have to check plugin details before your installing that its has to be compatible with your website version

WordPress Tutorial – Adding A Widget Area To Your Theme Files

Its a fairly simple process, which involves 2 steps:

1. Register The Widget

To register the new widget you need to open the functions.php file in your WordPress themes editor.

Add the following code to the functions file, making sure you place it in between php tags:

if ( function_exists('register_sidebar') ){
        'name' => 'my_mega_menu',
        'before_widget' => '',
        'after_widget' => '',
        'before_title' => '',
        'after_title' => '',

Give the widget area a name – e.g. my_mega_menu and in the before/after options you can place code which you wish to appear wrapped around either the widget itself or the title.

Since we are wanting to use one of the menu widget themes, which come with plugins we dont want to wrap it in the standard widget tags, which may interfere with the CSS.

For this example we have just wrapped it in a div tag with the id – my-mega-menu-widget.

2. Add The Widget Code To Your Theme

Now we can add the code that will call the widget to the correct location in our theme files. Since we are creating a horizontal mega menu we obviously want to display this in the header.

In your WordPress themes editor open the header.php file.

Find the location where you want to place the menu and add the following code to the header.php file:

< ?php /* Widgetized sidebar */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('my_mega_menu') ) : ?>< ?php endif; ?>

Make sure that you change the “my_mega_menu” text to be the same as the name you gave to your widget area in the functions file.

Save the changes to the header.php file

If you now go to the widget area in WordPress admin you should see a new widget area in the right hand column with the name of your widget.

Sources: http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files

Content Divider, Support Writing & Editing Splitting Content in WordPress

We can put more link in a a post/page by just adding


We can split a post/page up into different web pages so that is has pagination? All you have to do is type:


into the HTML editor where you would like your page breaks to appear.

You can use it throughout a long post to make two, three, four, or more pages out of the single post.

When you view your post on your site, the multi-page links appear as links at the bottom. The links below are an example of the feature in action.

How to: Restrict page view to authenticated users – WordPress

To check if the current reader is authenticated or not, WordPress provide the is_user_logged_in()function, which will return true if user is logged in, false otherwise.

We just have to create a basic php conditional instruction and check if the user is logged in:

if (is_user_logged_in()) {

// You page code goes here
} else {
echo "You must be logged in to view this page.";

Insert the code above in a new page template. When you’ll want to make a private page, just use this template.

Registration Module in WordPress: WP-Members

Download Plugin – http://wordpress.org/extend/plugins/wp-members/


WP-Members™ is a plugin to make your WordPress blog a membership driven site. Perfect for newsletters, private blogs, premium content sites, and more! The plugin restricts selected WP content to be viewable by registered site members. Unlike other registration plugins and WordPress itself, it puts the registration process inline with your content (and thus your branded theme) instead of the native WP login page. WP-Members™ works “out-of-the-box” with no modifications to your theme, but it is fully scalable for those that want to customize the look and feel, or want to restrict only some content. It is a great tool for sites offering premium content to subscribers, and is adaptable to a variety of applications. Continue reading Registration Module in WordPress: WP-Members