Responsive menu to stay on top

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
MikeT
 
 
Posts: 33
Joined: Wed Jan 30, 2019 11:10 am

Responsive menu to stay on top

Post by MikeT »

This is really a code problem not a WB15 problem but if anyone can help me please?

I have looked up all the forum topics about keeping the responsive menu on top and have spent hours using various permutations. But it doesn't transfer my HTML from between the <style>and <\style> markers, so presumably it is wrong. It does transfer the text Test and Test2 that I have used as a check

Herewith extract from Page HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Master_1</title>
<meta name="generator" content="WYSIWYG Web Builder 15 - http://www.wysiwygwebbuilder.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="tomkinsonV2.css" rel="stylesheet">
<link href="master_1.css" rel="stylesheet">
<script src="jquery-1.12.4.min.js"></script>
<script src="wb.stickylayer.min.js"></script>
<script>
$(document).ready(function()
{
$("#Layer1").stickylayer({orientation: 1, position: [0, 0], delay: 500});
});
</script>
<style>
{
#wb_ResponsiveMenu1/
z-index: 9999;
}
</style>
<!-- a test no 2-->
</head>
<body>
<div id="space"><br></div>
<div id="container">
</div>
<div id="Layer1" >
<div id="Layer1_Container">
<div id="wb_ResponsiveMenu1">


etc. etc.

Website is tomkinsonsofliverpool.co.uk and as you can see, the menu goes behind the text. I have only just rearranged the site so many pages are not functional. In fact most are not, but until I sort the menu I'm not going on.
Thanks
Mike
User avatar
Pablo
 
Posts: 23437
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Responsive menu to stay on top

Post by Pablo »

You do not have to add custom code to keep the menu at the top.
Add a sticky layer or a (fixed) page header to the page and make the menu part of the layer.

There are several templates that demonstrate this functionality:
https://wysiwygwebbuilder.com/templates9.html

Also note that the Responsive Menu supports 'affix'
https://wysiwygwebbuilder.com/affix_and_scrollspy.html
MikeT
 
 
Posts: 33
Joined: Wed Jan 30, 2019 11:10 am

Re: Responsive menu to stay on top

Post by MikeT »

Thank you Pablo- as ever.

Maybe I'm not explaining myself properly. I am fine using the header to keep the menu at the top, but when the submenus are extended then they don't go on top of the page content.

However, I will keep on trying

Mike
User avatar
Pablo
 
Posts: 23437
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Responsive menu to stay on top

Post by Pablo »

If you use a page header, then you can set the stack level to 'in front of content' to make sure the menu is on top.
MikeT
 
 
Posts: 33
Joined: Wed Jan 30, 2019 11:10 am

Re: Responsive menu to stay on top

Post by MikeT »

That is the solution- ererything now fine thank you.

Much appreciated

Mike
Post Reply