How to disable a menu on subpages

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Apr 04, 2016 5:54 pm
Reply with quote
Report this post
Hello,
I need to disable menu on subpages. In template there is only an option to choose one menu for subpages but I don't need any of them so what can I do?

Thanks,
Przemo
User avatar
Fresh Boarder

GK User
Thu Apr 07, 2016 5:40 pm
Reply with quote
Report this post
No answers?
http://hedo.vereb.pl/de/2015-10-24-11-18-47 - this is page with my problem. I disabled template's menu in template configuration but when I scroll that page there is white label in top. What is wrong? Help, please...
User avatar
Fresh Boarder

GK User
Sat Apr 09, 2016 7:50 pm
Reply with quote
Report this post
I did it :)
I know how to disable visibility of menu on subpages. All you have to do is change original layout to custom and add a class which will be hidden by css:
- duplicate file /templates/gk_john_s/layouts/default.php
- change name of it (e.g. "my_template")
- change this in that file (line 90):
Code: Select all
<div id="gkTop"<?php if($menu_is_active) : ?> class="active"<?php endif; ?>>   
          <div class="gkPage">

to this:
Code: Select all
<div id="gkTop"<?php if($menu_is_active)  { echo 'class="active underconstruction"';}; ?>>
          <div class="gkPage">

and add in override.css (overide css in template configuration should be enabled):
Code: Select all
#gkTop.underconstruction { height: 0px !important;}

- in template configuration in tab "basic settings > template layout" choose your custom template (my_template) from list
- save it

Of course this custom template shouldn't be default template of your site. It should be duplicated and conected to subpage(s).

Hope someone will enjoy it :)
User avatar
Fresh Boarder

teitbite
Wed Apr 13, 2016 10:29 am
Reply with quote
Report this post
Hi

Great solution. Sorry I couldn't make it to Your question faster to help. With new question please try not to bump it, our system recognises it as a self solved and removed it from moderators list of questions. I check that questions too, but priority are always questions I have in moderator tool. I'm closing this thread now.
User avatar
Moderator


cron