web stats analysis

Archive for August 3rd, 2013

How to use transition property in css?

Transition property is use to give effect to HTML Element when it will be in Hover or in focus mode.

Below is the example , which shows the use of Transition in div

Make a class like below.

div {transition: background-color 0.5s ease;

background-color: red;

}

div:hover {

background-color: green;

}

This is a Live Demo of Transition Property

This is a Transition Property Live Demo

How to add more than one menu in WordPress theme?

How to insert more than one menu in twentytwelve theme?

Follow the below steps.
Step:1- go to C:\wamp\www\your folder name\wp-content\themes\twentytwelve.

step:2-Open function.php file.

Step:3-find the register_my_menus() fuction

Step:4-and add following code.

function register_my_menus() {

register_nav_menus(

array(

‘top-menu’ => __( ‘Top Menu’ ),

‘footer-menu’ => __( ‘Footer Menu’ )

) );

}

add_action( ‘init’, ‘register_my_menus’ );