-
AuthorPosts
-
September 14, 2007 at 4:46 pm #122723
Hi
I Want Know How To Remove Navigation Bar From Top Of Template , But Remain The Main Menu On Left.
Thanksorpheus2510 Friendorpheus2510
- Join date:
- July 2007
- Posts:
- 149
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 14 times in 1 posts
September 14, 2007 at 5:18 pm #229467Go into index.php and find the lines:
[PHP]<!– BEGIN: MAIN NAVIGATION –>
<div id=”ja-header” class=”clearfix”><h1 class=”logo”><a href=”index.php”><?php echo $mosConfig_sitename?></a></h1>
<div id=”ja-mainnavwrap”>
<div id=”ja-mainnav” class=”clearfix”>
<?php
switch ($ja_menutype) {
case 1:
$jasplmenu->genMenu (0);
break;
case 2:
case 4:
include($ja_template_absolute_path.”/ja_cssmenu.php”);
break;
case 3:
echo “<div class=”transmenu-inner”>”;
include($ja_template_absolute_path.”/ja_transmenu.php”);
echo “</div>”;
break;
case 5:
echo $topnav;
break;
}
?>
</div>
</div><?php if ($subnav) {?>
<div id=”ja-subnav” class=”clearfix ja-transbg”>
<?php
if ($ja_menutype == 1) $jasplmenu->genMenu (1);
if ($ja_menutype == 5) echo $subnav;
?>
</div>
<?php } ?></div>
<!– END: MAIN NAVIGATION –>[/PHP]Comment them out or delete them.
September 15, 2007 at 5:13 am #229481I dont know what do you mein with(comment them out or delete them) , Please say exact what to change.
because i tried several time no success at all,
Thanksorpheus2510 Friendorpheus2510
- Join date:
- July 2007
- Posts:
- 149
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 14 times in 1 posts
September 15, 2007 at 8:01 am #229485If you want to comment them out, so that the lines will not be read, put an # at the beginning of every of the lines between <div id=”ja-header” class=”clearfix”> and the last </div> in the block above in your index.php. Looks like this:
[PHP]<!– BEGIN: MAIN NAVIGATION –>
#<div id=”ja-header” class=”clearfix”># <h1 class=”logo”><a href=”index.php”><?php echo $mosConfig_sitename?></a></h1>
# <div id=”ja-mainnavwrap”>
# <div id=”ja-mainnav” class=”clearfix”>
# <?php
# switch ($ja_menutype) {
# case 1:
# $jasplmenu->genMenu (0);
# break;
# case 2:
# case 4:
# include($ja_template_absolute_path.”/ja_cssmenu.php”);
# break;
# case 3:
# echo “<div class=”transmenu-inner”>”;
# include($ja_template_absolute_path.”/ja_transmenu.php”);
# echo “</div>”;
# break;
# case 5:
# echo $topnav;
# break;
# }
# ?>
# </div>
# </div># <?php if ($subnav) {?>
# <div id=”ja-subnav” class=”clearfix ja-transbg”>
# <?php
# if ($ja_menutype == 1) $jasplmenu->genMenu (1);
# if ($ja_menutype == 5) echo $subnav;
# ?>
# </div>
# <?php } ?>#</div>
<!– END: MAIN NAVIGATION –>[/PHP]You then have the possibility to make the lines readable by deleting the # again.
Otherwise you just can delete these lines from the file.bluecafe Friendbluecafe
- Join date:
- October 2006
- Posts:
- 157
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 2 times in 1 posts
September 15, 2007 at 11:27 am #229492<em>@Orpheus2510 27610 wrote:</em><blockquote>If you want to comment them out, so that the lines will not be read, put an # at the beginning of every of the lines between <div id=”ja-header” class=”clearfix”> and the last </div> in the block above in your index.php. Looks like this:
[PHP]<!– BEGIN: MAIN NAVIGATION –>
#<div id=”ja-header” class=”clearfix”># <h1 class=”logo”><a href=”index.php”><?php echo $mosConfig_sitename?></a></h1>
# <div id=”ja-mainnavwrap”>
# <div id=”ja-mainnav” class=”clearfix”>
# <?php
# switch ($ja_menutype) {
# case 1:
# $jasplmenu->genMenu (0);
# break;
# case 2:
# case 4:
# include($ja_template_absolute_path.”/ja_cssmenu.php”);
# break;
# case 3:
# echo “<div class=”transmenu-inner”>”;
# include($ja_template_absolute_path.”/ja_transmenu.php”);
# echo “</div>”;
# break;
# case 5:
# echo $topnav;
# break;
# }
# ?>
# </div>
# </div># <?php if ($subnav) {?>
# <div id=”ja-subnav” class=”clearfix ja-transbg”>
# <?php
# if ($ja_menutype == 1) $jasplmenu->genMenu (1);
# if ($ja_menutype == 5) echo $subnav;
# ?>
# </div>
# <?php } ?>#</div>
<!– END: MAIN NAVIGATION –>[/PHP]You then have the possibility to make the lines readable by deleting the # again.
Otherwise you just can delete these lines from the file.</blockquote># will only work in php code. The header is an html part so in oder to comment it out you would need to use <!– … –>
This is already used for <!– BEGIN: MAIN NAVIGATION –> and <!– END: MAIN NAVIGATION –> So just remove –> from the end of the first line and <!– from the bginning of the last line and then the whole part will be commented out.
To avoid confusion just remove (delete) the whole part. 🙂
orpheus2510 Friendorpheus2510
- Join date:
- July 2007
- Posts:
- 149
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 14 times in 1 posts
September 15, 2007 at 1:52 pm #229495Argh – of course, you’re right. I was not quite awaken this morning … 🙂
September 15, 2007 at 4:25 pm #229497THanks Thanks ThankSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
March 26, 2008 at 9:10 pm #243277Quick noob question: how do I make the rest of the site stay on its places 🙂
When removing the above, the side menue and everything moves up to the top of the page.
Using Joomla 1.0.15//Max
-
AuthorPosts
This topic contains 8 replies, has 4 voices, and was last updated by maxamaxa 16 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum