responsive mega menu complete set free download

Mega menu is becoming more and more popular however, not everyone knows how to create a mega menu. The normal menu just shows links and dropdowns. With a mega menu, you can display a list of best-selling products, images, and videos for the purpose of advertising. The article responsive mega menu complete set free download will guide you on how to create mega menus.

If you are using Mega menu module on Prestashop, you could be satisfied because your mega menu is fully responsive with all devices such as PC, laptop, tablets, and mobile phones. If you use Prestashop, you could get access to this link https://addons.prestashop.com/en/menu/29701-mega-menu-builder.html if this module is suitable and meets your requirements.

If your project is just built with html  and you want to see how it is, the article responsive mega menu complete set free download will support you.

Preparation

Prepare editor software and a commonly used web browser.

Implementation

Create a mega menu folder to contain files in your computer.

Step 1: Open the editor software. Create menu.html file with the following contents and save it.

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<scriptsrc="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<nav class="navbarnavbar-inverse">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".js-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">My Store</a>
</div>
 
<div class="collapse navbar-collapse js-navbar-collapse">
<ul class="navnavbar-nav">
<li class="dropdown mega-dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Men <span class="caret"></span></a>
<ul class="dropdown-menu mega-dropdown-menu">
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Men Collection</li>
<div id="menCollection" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active">
<a href="#"><img src="http://placehold.it/254x150/ff3546/f5f5f5/&text=New+Collection" class="img-responsive" alt="product 1"></a>
<h4><small>Summer dress floral prints</small></h4>
<button class="btnbtn-primary" type="button">49,99 €</button><button href="#" class="btnbtn-default" type="button"><span class="glyphiconglyphicon-heart"></span> Add to Wishlist</button>
</div><!-- End Item -->
<div class="item">
<a href="#"><img src="http://placehold.it/254x150/3498db/f5f5f5/&text=New+Collection" class="img-responsive" alt="product 2"></a>
<h4><small>Gold sandals with shiny touch</small></h4>
<button class="btnbtn-primary" type="button">9,99 €</button><button href="#" class="btnbtn-default" type="button"><span class="glyphiconglyphicon-heart"></span> Add to Wishlist</button>
</div><!-- End Item -->
<div class="item">
<a href="#"><img src="http://placehold.it/254x150/2ecc71/f5f5f5/&text=New+Collection" class="img-responsive" alt="product 3"></a>
<h4><small>Denin jacket stamped</small></h4>
<button class="btnbtn-primary" type="button">49,99 €</button><button href="#" class="btnbtn-default" type="button"><span class="glyphiconglyphicon-heart"></span> Add to Wishlist</button>
</div><!-- End Item -->
</div><!-- End Carousel Inner -->
<!-- Controls -->
<a class="left carousel-control" href="#menCollection" role="button" data-slide="prev">
<span class="glyphiconglyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#menCollection" role="button" data-slide="next">
<span class="glyphiconglyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div><!-- /.carousel -->
<li class="divider"></li>
<li><a href="#">View all Collection <span class="glyphiconglyphicon-chevron-right pull-right"></span></a></li>
</ul>
</li>
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Features</li>
<li><a href="#">Auto Carousel</a></li>
<li><a href="#">Carousel Control</a></li>
<li><a href="#">Left & Right Navigation</a></li>
<li><a href="#">Four Columns Grid</a></li>
<li class="divider"></li>
<li class="dropdown-header">Fonts</li>
<li><a href="#">Glyphicon</a></li>
<li><a href="#">Google Fonts</a></li>
</ul>
</li>
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Plus</li>
<li><a href="#">Navbar Inverse</a></li>
<li><a href="#">Pull Right Elements</a></li>
<li><a href="#">Coloured Headers</a></li>
<li><a href="#">Primary Buttons & Default</a></li>
</ul>
</li>
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Much more</li>
<li><a href="#">Easy to Customize</a></li>
<li><a href="#">Calls to action</a></li>
<li><a href="#">Custom Fonts</a></li>
<li><a href="#">Slide down on Hover</a></li>
</ul>
</li>
</ul>
</li>
<li class="dropdown mega-dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Women <span class="caret"></span></a>
<ul class="dropdown-menu mega-dropdown-menu">
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Features</li>
<li><a href="#">Auto Carousel</a></li>
<li><a href="#">Carousel Control</a></li>
<li><a href="#">Left & Right Navigation</a></li>
<li><a href="#">Four Columns Grid</a></li>
<li class="divider"></li>
<li class="dropdown-header">Fonts</li>
<li><a href="#">Glyphicon</a></li>
<li><a href="#">Google Fonts</a></li>
</ul>
</li>
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Plus</li>
<li><a href="#">Navbar Inverse</a></li>
<li><a href="#">Pull Right Elements</a></li>
<li><a href="#">Coloured Headers</a></li>
<li><a href="#">Primary Buttons & Default</a></li>
</ul>
</li>
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Much more</li>
<li><a href="#">Easy to Customize</a></li>
<li><a href="#">Calls to action</a></li>
<li><a href="#">Custom Fonts</a></li>
<li><a href="#">Slide down on Hover</a></li>
</ul>
</li>
<li class="col-sm-3">
<ul>
<li class="dropdown-header">Women Collection</li>
<div id="womenCollection" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active">
<a href="#"><img src="http://placehold.it/254x150/3498db/f5f5f5/&text=New+Collection" class="img-responsive" alt="product 1"></a>
<h4><small>Summer dress floral prints</small></h4>
<button class="btnbtn-primary" type="button">49,99 €</button><button href="#" class="btnbtn-default" type="button"><span class="glyphiconglyphicon-heart"></span> Add to Wishlist</button>
</div><!-- End Item -->
<div class="item">
<a href="#"><img src="http://placehold.it/254x150/ff3546/f5f5f5/&text=New+Collection" class="img-responsive" alt="product 2"></a>
<h4><small>Gold sandals with shiny touch</small></h4>
<button class="btnbtn-primary" type="button">9,99 €</button><button href="#" class="btnbtn-default" type="button"><span class="glyphiconglyphicon-heart"></span> Add to Wishlist</button>
</div><!-- End Item -->
<div class="item">
<a href="#"><img src="http://placehold.it/254x150/2ecc71/f5f5f5/&text=New+Collection" class="img-responsive" alt="product 3"></a>
<h4><small>Denin jacket stamped</small></h4>
<button class="btnbtn-primary" type="button">49,99 €</button><button href="#" class="btnbtn-default" type="button"><span class="glyphiconglyphicon-heart"></span> Add to Wishlist</button>
</div><!-- End Item -->
</div><!-- End Carousel Inner -->
<!-- Controls -->
<a class="left carousel-control" href="#womenCollection" role="button" data-slide="prev">
<span class="glyphiconglyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#womenCollection" role="button" data-slide="next">
<span class="glyphiconglyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div><!-- /.carousel -->
<li class="divider"></li>
<li><a href="#">View all Collection <span class="glyphiconglyphicon-chevron-right pull-right"></span></a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Store locator</a></li>
</ul>
<ul class="navnavbar-navnavbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">My account <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
<li><a href="#">My cart (0) items</a></li>
</ul>
</div><!-- /.nav-collapse -->
</nav>
</div>

Step2 :Create style.css file with the following contents and save it.


@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
body {
font-family: 'Open Sans', 'sans-serif';
}
.mega-dropdown {
position: static !important;
}
.mega-dropdown-menu {
padding: 20px 0px;
width: 100%;
boxshadow: none;
-webkit-box-shadow: none;
}
.mega-dropdown-menu > li >ul {
padding: 0;
margin: 0;
}
.mega-dropdown-menu > li >ul> li {
list-style: none;
}
.mega-dropdown-menu > li >ul> li > a {
display: block;
color: #222;
padding: 3px 5px;
}
.mega-dropdown-menu > li ul> li > a:hover,
.mega-dropdown-menu > li ul> li > a:focus {
text-decoration: none;
}
.mega-dropdown-menu .dropdown-header {
font-size: 18px;
color: #ff3546;
padding: 5px 60px 5px 5px;
line-height: 30px;
}
 
.carousel-control {
width: 30px;
height: 30px;
top: -35px;
 
}
.left.carousel-control {
right: 30px;
left: inherit;
}
.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right {
font-size: 12px;
background-color: #fff;
line-height: 30px;
text-shadow: none;
color: #333;
border: 1px solid #ddd;
}

Step3 :Create js.js file with the following contents and save it.


$(document).ready(function(){
$(".dropdown").hover(
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideDown("400");
$(this).toggleClass('open');
},
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideUp("400");
$(this).toggleClass('open');
}
);
});
 

We have created a mega menu with html, javascript, and css together. As the meaning of the title responsive mega menu complete set free download, the menu has already created, you could download it. If you have any better way, please let us know by leaving a comment. Thanks for reading. Do not forget to share this article.

wordpress custom form save to database

The phrase wordpress custom form save to database is interested by lots of people. Almost simple contact forms are sent to the admin email address. But in fact, the data needed to be saved to the database. This article will guide you on how to do this in the simplest way.

To be easy for WordPress newbies, we will prioritize to use a plugin. Of course, you can write code yourself. However, for the suitability for every people, we will do the simplest things as below.

Preparation

  • WordPress: Absolutely, you need to have one website with WordPressalready installed or used on your computer.
  • Contact form 7: You must have been so familiar with it due to its popularity
  • Contact Form 7 Database: This is the plugin used to save data to the database when users submit information.

Implementation

In order to complete the process that wordpress custom form save to database, the first things to do is log in to the WordPress admin. You hover to Plugins and click on Add new.

wordpress custom form save to database

In the search box, you enter contact form 7. Then you install the plugin and make it active as below

wordpress custom form save to database

We so the similar thing with the plugin “contact form 7 database”

wordpress custom form save to database

Now, we will create a contact form by building fields. Contact form 7 is a very good form builder plugin which supports many types of input field such as text, image, file, checkbox, etc.

You can use the default form of contact form 7 to make a simple trial.

On all forms, there exist shortcodes. You just need to copy the shortcodes and paste on the post or page you want forms to be displayed.

wordpress custom form save to database

This article will help you add this code to the contact page

wordpress custom form save to database

add captcha  to a form in shopify 

After entering the information already, you click on Submit. If you use localhost but you have not installed sending email on the localhost, the system will show error. Don’t worry! After submitting, data has been saved to the database. We will get to the back end to check.

The plugin admin will display as below

wordpress custom form save to database

You click to view the detailed contents.

Here is the content in the example

wordpress custom form save to database

We have finished the article wordpress custom form save to database. If you have any question, please leave a comment. If you use Prestashop, you could use form builder module. This module supports you to drag and drop professionally. You just have to drag and drop the fields you want to display and save them. It supports responsive to be compatible with all devices. If you do not know how to use it, there are available guidance document as well as support team so that you can use it without minding.

Woocommerce how to show shipping fields

If you use WordPress to create e-commerce websites, you must have wondered Woocommerce how to show shipping fields. It is because when you install woocommerce, if you do not configure to install shopping, this field will not display in the checkout page.

Before installing, woocommerce only provides users with one payment address. Therefore, in the checkout page, if you want to add a shipping address, you need to carry out the following steps.

In the back office, you hover the cursor to Woocommerce and click on Settings as below

Woocommerce how to show shipping fields

Next, you click on Shopping as the figure below

Woocommerce how to show shipping fields

In Shipping Zones, click on Add shipping zone on the top left or in the bottom of the screen as the figure below

You input Zone name, zone regions. Then click to choose Add shopping method

Woocommerce how to show shipping fields

A screen shows up as below, you could choose a proper method and click on Add shipping method

Woocommerce how to show shipping fields

In edit section, you click on Edit to customize information related to this method.

Woocommerce how to show shipping fields

Here is the information you should input including the method, the cost of shipping method. The amount will be added to the total amount of the order. Then click on Save changes.

Woocommerce how to show shipping fields

Keep getting to Shipping option tab, select the second item then click on Save changes.

Woocommerce how to show shipping fields

Now you get back to the checkout page to check the result. If you follow the steps above, I am sure that it can work well.

Woocommerce how to show shipping fields

and now, form supports to save data to the database, you can check this in the order of woocommerce. If you have any problem related to woocommerce in general as well as Woocommerce how to show shipping fields in common, I think your problem is solved. Please contact us if you have any problem. We will support you for free.

how to create a login page in java

Java is an extremely popular programming language in the world. It is used to create many applications. Today, we will develop a small feature by java language. The article “how to create a login page in java” is for JAVA newbies to refer to the operation of functions, ways of importing and exporting, and data comparing as well.

how to create a login page in java

As mentioned above, “how to create a login page in java” is a simple article. So, in this article, we do not intervene in the database. We consider that the default value of username is “admin”, and that of the password is “Password”.

There is a simple principle as following. We will create a simple form first. This form will include two textbox to enter username and password, and a submit button to click on.

After clicking on submit button, in order get the data of username, we use user.getText(). Similarly, in order to get the password, we use wd.getText(). Now we will compare the input data with the available data. If they are the same, there will be a notification that login is successful, and vice versa. The username of sample data is “admin” and the password is “Password”. This code below will display the notification.

if(user.getText().equals(“admin”)&&pwd.getText().equals(“Password”)){

JOptionPane.showMessageDialog(null, “Login is Successfull.”);

}

elseJOptionPane.showMessageDialog(null, “Login is Unsuccessfull.”);

}

So, we have just finished the article “how to create a login page in java”. Below is the full code for the example. You could copy this code and edit it appropriately. If you have any problem related to form, custom fields, saving data to the database please contact us for free support.

date of birth in php form

How to use date of birth in php form is the issue that many people are confused when using this programming language. Withthe forms related to personal information, there are many cases that forms include date of birth information.

date of birth in php form

If we use textbox to input date of birth, data must be checked. If users enter text, special characters or a number bigger than 31, there must have a notification that the input is invalid. Commonly, we use javascript to process the data.

In order that users do not input text or special characters, you could use type=number limited from 1 to 31.

There are many systems using dropdown for the purpose of importing date. With dropdown, users do not have to enter information but choose one date in the list of dates displaying. It must be sure that data displays properly. For example, there is no 30th or 31th in February.

Using the types of input like the two above, you need to identify data and calculate properly as well. This will costs you a lot of time. There is one type that incurs less error but is more visible. It is date picker. Thanks to date picker, using date of birth in php form is not a big problem anymore.

You could use the following example to see if date picker can make your project simpler.

<!doctype html>

<html lang=”en”>

<head>

<metacharset=”utf-8″>

<metaname=”viewport”content=”width=device-width, initial-scale=1″>

<title>jQuery UI Datepicker – Default functionality</title>

<link rel=”stylesheet”href=”//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css”>

<link rel=”stylesheet”href=”/resources/demos/style.css”>

<scriptsrc=”https://code.jquery.com/jquery-1.12.4.js”></script>

<scriptsrc=”https://code.jquery.com/ui/1.12.1/jquery-ui.js”></script>

<script>

$( function() {

$( “#datepicker” ).datepicker();

} );

</script>

</head>

<body>

<p>Date: <input type=”text”id=”datepicker”></p>

</body>

</html>

Please read more data picker at here

We have run through the article date of birth in php form. If you have any feedback about the article, or you want to know more about form builder and how to save a form to the database, please read the next article, or contact us for support.

Thank you for reading my post.