Ajax Code with jQuery

jQuery.ajax({
type: “POST”,
url:”url”,
data:{
“survey_form”: ques1,
“driving_boss”: ques2,
“quick_look”: ques3,
},
}).success(function(result){
//jQuery(‘.send_log_details’).show();
alert(“success”);
})
jQuery.ajax({
type: “POST”,
url: add_user_url,
data:{
“user_login”: user_login[0],
“email”: email,
“role”: “subscriber”,
“createuser”: “Add New User”,
},
}).success(function(result){
alert(“success”);
});

Toggle function in jQuery

Toggle function used hiding and showing purpose.Specially used for menu dropdown functionality.

jQuery(document).ready(function(){
     jQuery(".menu-item-503 a").hover(function(){ 
         jQuery(".menu-item .sub-menu").Toggle();
    });
});

Basic files for wordpress theme creation

We need two file for theme creation

1. index.php

2. style.css

With in style.css we need to define theme name, author, version etc… with in comments. Shown in below.

/*
Theme Name: Name of theme
Theme URI: location url
Author: Theme author name
Author URI: Author profile URL
Description: About theme.
Version: 1.0
*/