Topnav only active after enabling other positions

25 April, 2016
GK User
Mon Jun 13, 2016 11:56 am
Hi there,

I've created a topmenu which is activated on position topnav. I don't want other modules enabled in the top position. Unfortunately, the menu will only be displayed, after activating other modules in top, for example a search module or login module. See: http://www.knap-website.nl/pcrr/joomla3/

How to solve this?
Cheers
User avatar
Junior Boarder

teitbite
Fri Jun 17, 2016 9:39 am
Hi

please edit file /layout/default.php and change line 87:

Code: Select all
      <?php if($this->API->modules('login') || $this->API->modules('search')) : ?>


to

Code: Select all
<?php if($this->API->modules('login') || $this->API->modules('search') || $this->API->modules('top_nav')) : ?>
User avatar
Moderator

GK User
Tue Jun 21, 2016 1:59 pm
Thanks! This will help.
User avatar
Junior Boarder

teitbite
Sat Jun 25, 2016 6:42 pm
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron