Change the display block : none to block and vice versa.

While designing a web page especially the header it is important to know to change the content to none to block and vice versa by using Java Script. It will be very helpful when we develop a responsive NavBar. The java script code used for this is as follows:- function toggleFunction() {       … Continue reading Change the display block : none to block and vice versa.

Change the color of the Png image to black in hover.

The color of the image that is inside a parent div can be changed into black using some CSS codes.  The icon images has to change to black while hovering on the parent div.  So we have to call the total div in CSS and make it hover  Then call the div along with the… Continue reading Change the color of the Png image to black in hover.

Project the image gallery to front(150%) without using extra images(while making responsive)

While we are making a site responsive, we can make too many alterations especially while making image gallery responsive. My requirement was to make each of the image project 150% to the front in small devices. One image should occupy the entire row and next image after the other. The cod used here to change… Continue reading Project the image gallery to front(150%) without using extra images(while making responsive)

Insert Contents into the table of database

The contents can be inserted by using the function given below: function my_plugin_insert_db() {  global $wpdb;  $username = ‘wordpress’;  $email = ‘test1@wordpress.com‘;  $table_name = $wpdb->prefix . ‘db_plugin’;  $wpdb->insert(  $table_name,  array(  ‘username’ => $username,  ’email’ => $email,  )  );  }  if(isset($_POST[‘button2’])) {      global $wpdb;      $username = $_POST[“fname”];      $email = $_POST[“email”];      $table_name =… Continue reading Insert Contents into the table of database