Wordpress Menu
How do I make an wordpress menu?
What is a wordpress menu? How do you make a wordpress menu? This script and codes were developed by Jessica Pittman on 28 October 2022, Friday.
Wordpress Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Wordpress Menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <a href="" id="menu-button">Text</a>
<nav id="vl-navigation" role="navigation"> <ul id="menu-main-menu" class="main-menu"> <li class="">Link</li> <li class="menu-item menu-item-has-children"><a href="">Link</a> <ul class="sub-menu"> <li class="menu-item"><a href="yahoo.com" target="_blank">Link</a></li> </ul> </li> <li class="menu-item menu-item-has-children"><a>Link</a> <ul class="sub-menu"> <li class="menu-item"><a href="yahoo.com" target="_blank">Link</a></li> </ul> </li> </ul>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Wordpress Menu - Script Codes CSS Codes
.visible { visibility: visible !important;
}
nav#vl-navigation { visibility: hidden;
}
ul.sub-menu { display: none; position: relative;
}
Wordpress Menu - Script Codes JS Codes
$(document).ready(function() { $('#menu-button').click(function(e) { e.preventDefault(); $('nav#vl-navigation').toggleClass("visible"); }); $('nav ul li a:not(:only-child)').click(function(e) { e.preventDefault(); $(this).siblings('.sub-menu').toggle(); $('.sub-menu').not($(this).siblings()).hide(); e.stopPropagation(); }); $('nav ul li a:not(:only-child)').mouseenter(function(e) { $(this).siblings('.sub-menu').slideDown(); $('.sub-menu').not($(this).siblings()).slideUp(); }); $('.sub-menu').mouseleave(function(e) { $(this).slideUp(); }); // Clicking away from menu will remove submenu $('html').click(function() { $('.sub-menu').hide(); });
});
Developer | Jessica Pittman |
Username | jessikuh |
Uploaded | October 28, 2022 |
Rating | 3 |
Size | 2,221 Kb |
Views | 18,216 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Tribute Page | 3,087 Kb |
A Pen by Jessica Pittman | 2,123 Kb |
Home Energy Solutions Banner | 2,422 Kb |
Thunderbird Resort | 3,328 Kb |
Steven Finlay | 3,892 Kb |
Random Quote Generator | 3,909 Kb |
Commissioned Skin | 2,399 Kb |
Control Group Heating | 3,470 Kb |
Font Combinations | 1,640 Kb |
Scheme Ideas | 8,838 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
Box Shadow Effects | Retrofuturistic | 2,143 Kb |
Sexy Social Buttons | Ipiyale | 2,226 Kb |
Blackberry Mock | Zacharyolson | 1,865 Kb |
Tree growth tests | Orchard | 3,818 Kb |
Arrow Navigation | Hinducows | 1,973 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
Two column of responsive height | Fixie | 2,908 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!