Menu2Panel not working in article view pages
- Posted by Oier (6) Offline
Hi,
I really like this module, but I am having some problems with it in my page ( plaentxia.net ).
I use it so that the normal menu module is displayed when the screen's width is over 800px, and when the width is lower than that the menu2panel module is showed instead of that one.
The module works fine, but when you go to an article view page there is some kind of problem with it.
I've noticed a difference in the html code of the page when the module doesn't work.
Normally, the "nav id="mmenu-left" " tag is inside the "body" tag and above the "div class="body mm-page" " tag.
When it doesn't work, the "nav id="mmenu-left" " tag is inside the "div class="body" " tag, where the menu2panel module is placed. Notice that, in this case, the "mm-page" class doesn't appear in the "div class="body" " tag.
No changes have been made in any of this modules' files, and the only thing I did to change its appearance was to add these lines in the template.css file of the webpage:
.mm-accelerated footer,
.mm-left footer,
.mm-opening footer,
.mm-opened footer{
display: none;
}
div.mmenu_wrapper{
display: none;
float: right;
}
div.mmenu_wrapper a{
position: static !important;
height: 32px !important;
border-radius: 2px;
background-position: 7.5px 4px;
}
@media screen and (max-width: 799px) {
div.mmenu_wrapper{
display: block;
margin-right: 10px;
}
.mm-menu.mm-left{
width: 330px !important;
}
html.mm-left.mm-opening .mm-page,
html.mm-left.mm-opening #mm-blocker{
left: 330px !important;
}
}
What can I do so that it is well displayed also in the article-view pages?
10 years 10 months ago #1
by Oier
I really like this module, but I am having some problems with it in my page ( plaentxia.net ).
I use it so that the normal menu module is displayed when the screen's width is over 800px, and when the width is lower than that the menu2panel module is showed instead of that one.
The module works fine, but when you go to an article view page there is some kind of problem with it.
I've noticed a difference in the html code of the page when the module doesn't work.
Normally, the "nav id="mmenu-left" " tag is inside the "body" tag and above the "div class="body mm-page" " tag.
When it doesn't work, the "nav id="mmenu-left" " tag is inside the "div class="body" " tag, where the menu2panel module is placed. Notice that, in this case, the "mm-page" class doesn't appear in the "div class="body" " tag.
No changes have been made in any of this modules' files, and the only thing I did to change its appearance was to add these lines in the template.css file of the webpage:
.mm-accelerated footer,
.mm-left footer,
.mm-opening footer,
.mm-opened footer{
display: none;
}
div.mmenu_wrapper{
display: none;
float: right;
}
div.mmenu_wrapper a{
position: static !important;
height: 32px !important;
border-radius: 2px;
background-position: 7.5px 4px;
}
@media screen and (max-width: 799px) {
div.mmenu_wrapper{
display: block;
margin-right: 10px;
}
.mm-menu.mm-left{
width: 330px !important;
}
html.mm-left.mm-opening .mm-page,
html.mm-left.mm-opening #mm-blocker{
left: 330px !important;
}
}
What can I do so that it is well displayed also in the article-view pages?
Please Log in or Create an account to join the conversation.
- Posted by Oier (6) Offline
I add an image to show what happens in the article view page.
The menu2panel module is displayed there as a wrapped menu, but the "nav id="mmenu-left" " element is also automatically showed. When you click on the wrapped menu nothing shows up, as the menu is already visible. That's the problem actually.
10 years 10 months ago #2
by Oier
The menu2panel module is displayed there as a wrapped menu, but the "nav id="mmenu-left" " element is also automatically showed. When you click on the wrapped menu nothing shows up, as the menu is already visible. That's the problem actually.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5263) Offline
Hmm, Can you share your website URL so I can take a look?
10 years 10 months ago #3
by TemplatePlazza
Please Log in or Create an account to join the conversation.
- Posted by Oier (6) Offline
- Posted by TemplatePlazza (5263) Offline
Hi oierta, Sorry I didn't se the url you entered because you were commenting my post (not replying) so I didn't get a notification email. Btw I have visited your website and it looks like everything goes fine? See
goo.gl/rxIkIs
10 years 9 months ago #5
by TemplatePlazza
goo.gl/rxIkIs
Please Log in or Create an account to join the conversation.
- Posted by Oier (6) Offline
That's the point. It works fine everywhere except in articles, and I think that in the video you are in the homepage.
Just click the first article link so that you go to the article view and you will clearly see what the problem is.
10 years 9 months ago #6
by Oier
Just click the first article link so that you go to the article view and you will clearly see what the problem is.
Please Log in or Create an account to join the conversation.