Top Menu

Memovie Joomla Template support forum for Joomla 1.5 only.
GK User
Wed Apr 07, 2010 5:54 am
Hello I was wondering how I would go about removing the main top menu.

I do not want a horizontal menu and I do not think it is associated with any modules that I can unpublish. I also tried to associate the menu with all unpublished items and I could not do that.

Many thanks

Spencer
User avatar
Fresh Boarder

GK User
Wed Apr 07, 2010 10:49 am
Hi,
please go to: ../templates/gk_memovie/layouts/default.php

lines 11-12-13:
Code: Select all
<!-- MAIN NAVIGATION -->
<?php $this->loadBlock('mainnav') ?>
<!-- //MAIN NAVIGATION -->


quote/delete the line that calls the mainnav:

Code: Select all
<!-- MAIN NAVIGATION -->
/*<?php $this->loadBlock('mainnav') ?>*/
<!-- //MAIN NAVIGATION -->


I advise you to just quote it, so that u can eventually cut the expression and paste it where u want your main menu to appear (maybe on the left,right or even the extreme top) as u wish :)

regards

EDIT: WRONG CODE, REASON BELOW
User avatar
Expert Boarder

GK User
Wed Apr 14, 2010 5:37 am
Thanks for the help I couldn't find it where you suggested but it was in a file in the layouts folder.
User avatar
Fresh Boarder

GK User
Thu Jun 10, 2010 4:27 am
yes it is,
but the path might be different according to your directory and stuff
and i just truncated it

it should be around:
/home/????/public_html/XXXX/templates/gk_memovie/layouts/default.php

anyway, I'm glad it helped

regards :)
User avatar
Expert Boarder

GK User
Thu Jun 10, 2010 5:54 am
it realy is not in this path.
i'll look for ti thogh, and update what the path is ( maybe not this file? )
User avatar
Senior Boarder

GK User
Thu Jun 10, 2010 6:00 am
ok, so an update.... in :
/public_html/templates/gk_memovie/layouts/blocks

find the file mainnav.php

there, find the code :
Code: Select all
<div id="gk-mainnav" class="clearfix">

   <?php if (($gkmenu = $this->loadMenu())) $gkmenu->genMenu ($this->getParam('startlevel',0), $this->getParam('endlevel',-1)); ?>

</div>


and comment it like this :
Code: Select all
<!--div id="gk-mainnav" class="clearfix">

   <!--?php if (($gkmenu = $this->loadMenu())) $gkmenu->genMenu ($this->getParam('startlevel',0), $this->getParam('endlevel',-1)); ?>

</div-->


this does the trick. B)
User avatar
Senior Boarder

GK User
Thu Jun 10, 2010 5:26 pm
apologies :blush:
i must have mistaken default.php for header.php:
(templates/gk_memovie/layouts/blocks/header.php)

I just checked it, and it's definitely there in lines 11, 12, 13

but welcome anyway :)
User avatar
Expert Boarder

GK User
Thu Jun 10, 2010 10:26 pm
OMG NO!
your hack is realy bad... (sorry :unsure: )

a. you can comment with
Code: Select all
/* sdfdsf */
in a PHP code, you have to comment with
Code: Select all
<!-- sdfsd-->

b. your solution toatlly removes the HEADER, not just the main menu :huh: ...

i think my solution was still the best one for now...
User avatar
Senior Boarder

GK User
Fri Jun 11, 2010 11:14 am
:blush: :blush: :blush: :blush: :blush: :blush:
I really don't know what to say,
apologies!

a. thanks for pointing this issue to me,
I never took a course in php,
but i try to manage myself for my site needs
and this, i never knew that commenting this way is wrong
:blush: :blush: :blush: :blush: :blush: :blush:

b. when i suggested the code, i must have confused gk-mainnav with mainnav.php
I didn't try the code myself, i would have noticed my error if i did!
but i thought it worked, so i didn't give it a re-thought


and yes i agree,
ur solution is the best for now


sorry again :S
User avatar
Expert Boarder

GK User
Fri Jun 11, 2010 12:01 pm
no need to apologize, this is the purpose of the forum,to learn from each other. You gave me the direction, i just finalized it .:-)
User avatar
Senior Boarder

GK User
Fri Jun 11, 2010 3:02 pm
:)
User avatar
Expert Boarder


cron