-
AuthorPosts
-
October 17, 2016 at 12:26 am #976889
Hello,
I need to hide MainMenu / MegaMenu in some pages / articles.
I created a new style and new layout. Also created a new head block, that now loads a custom-2 (a new custom css file), that has code to not display main-nav.
At first, it worked well. After assigning this new style / layout to a joomla menu and as expected articles under this menu did not load main menu / mega menu again.
But when assigning other articles to this non-mainmanu style, this new setting does not apply anymore.
Main menu remains the same, for new articles and also for previous articles that I want to display without mainmenu. Only some of the assigned articles behave as expected.
For some pages mainmenu does not load, for other does load, although all have the same style / layout / assignments / css configuration.
I already cleaned all cache, both joomla and browser, logged in / out more than once, disable all system cache, double checked everything, tested in other computer, mobile, but nothing. And it should be working.
I would like to say that, besides this T3 templates seemed to be a great advantage, in fact they are a very frustrating experience. Even when you follow all steps, and when things do work right, they are not reliable, because you can not replicate your results easily.
So you never know what actually made was right and what is missing, or if yoy get your results by chance. I even refused to update the template for fear of having to deal with some unexpected result.
Any ideas of what is getting wrong?
Thanks in advance,
CCPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 17, 2016 at 3:28 am #976954Hi
In this case, I need to take a look on your site what did u customised on site .
You give me URL of Menu item where u want to show Mega menu and URL of the menu where u do not want to show the mega menu .
Send me admin Path and super user login details of the site so that I can check this .October 17, 2016 at 9:56 am #977080This reply has been marked as private.October 17, 2016 at 9:58 am #977081This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 18, 2016 at 4:35 am #977420Hi
Please follow the suggestion below how u can hide the Mega menu .
First method :
Create a new template style add a custom layout as mentioned in first post , remove the header block from its layout php file .
Use this template style of all of the menu , that you do not want to show the header .2nd Method :
using css style ,
Add below code in custom.css file to hide the header.hidemenu .t3-mainnav {display:none;}
Add hiddenmenu page class in the Menu options > Page class .
Save and checkBoth the method will work on the Menu items .
Hope it helps .October 18, 2016 at 12:14 pm #977661Hi, bad news. Nothing works.
And after testing as you said, I can´t even remove mainnav from pages that were OK before.
1st. option didn´t work. I am able to see the new style, without main nav in backed, but it does not apply when saving.
2nd option. I created a new custom css, because custom.css controls all other pages. As I told before, had to create a new head block and there edit to change custom.css to this new css, as you described. On menu page class, I tried hiddenmenu and hidemenu (who knows?)
Also changed all permissions to 777 and again new style does not apply.
Also created another new style, and also does not work.
As I said, this T3 is a crazy thing.
Could you please take a closer look?
I already sent admin info, I am sending now FTP.
Thanks.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 12:55 am #977850Hi
The 2nd method is easy and worked fine when i tested .
Kindly give me Full menu path of the pages where u want to hide the main nav or give me the Menu ID .
I will add the page class myself on your site .October 19, 2016 at 9:46 am #978066Hi Pankaj, thanks for answering.
Resultados dos Testes – Menu ID is 31
All pages are under this menu, they are 65 pages. Some are OK, others not. If you get it working in just one, I can do for the others.
Page OK —> http://minhasuperacao.com/teste/md4-wpl34xz (sub menu id = 893)
Page not OK –> http://minhasuperacao.com/teste/ipda-teste-medo-dirigir (sub menu id = item 1159)I tried again to add page class, hiddenmenu / hidemenu, no way.
This is a clone installation, so please let me know how can I reproduce results in the production site.
thanks
October 19, 2016 at 10:29 am #978089Hi Pankaj,
I got a new result. Good news.
Besides creating a new style with mainbody only (removing all other blocks, including header), I had to follow also these steps:
- remove canvas from layout file
- remove canvas from template manager -> edit style -> addons -> canvas set to no
- add custom css =
.hidemenu .t3-mainnav {display:none;}
.hidemenu .t3-header {display:none;} - add page class hidemenu (not hiddenmenu)
This is the only possible combination that worked.
It remains a doubt why for some menu itens it was not needed any of these steps.
After solving this issue, there is another question, for a new style.
- Created a NewStyle (2) as a copy of Default style. MegaMenu loads Menu Public.
Public Menu has links to Login / Create account. How to hide this menu itens (Login / Create account) only for pages under this NewStyle (2).
Thanks!
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 10:38 am #978098Hi
Kindly check both pages :
Page OK —> http://minhasuperacao.com/teste/md4-wpl34xz (sub menu id = 893)
http://prntscr.com/cw6rzy
Page not OK –> http://minhasuperacao.com/teste/ipda-teste-medo-dirigir (sub menu id = item 1159)
http://prntscr.com/cw6skwBoth page not showing the Mega menu , there is nothing that need to hide .
October 19, 2016 at 12:59 pm #978153Hi,
Yes, I was able to completly hide the MegaMenu when I added also hidemenu.t3.header to CSS.
That´s exactly what I was looking for, thanks.
Now there is another situation:
For ANOTHER CUSTOM STYLE, how could I:
- keep megamenu
- hide only some links (not all the mega menu – mainnav) (eg. hide only menu item Login)
- restrict changes only to this new custom style
Thanks for your kindness.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 3:54 pm #978189Hi
Please create a new thread for different questions this will also help our community to find the same topic.
thanks for your understanding .best regardsOctober 19, 2016 at 8:49 pm #978262Sure! Thanks again.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 10:36 pm #978278You are welcome !
AuthorPostsViewing 14 posts - 1 through 14 (of 14 total)This topic contains 13 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Hide MainMenu – Some pages / menus
Viewing 14 posts - 1 through 14 (of 14 total)