test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • amoallaei Friend
    #122723

    Hi
    I Want Know How To Remove Navigation Bar From Top Of Template , But Remain The Main Menu On Left.
    Thanks

    orpheus2510 Friend
    #229467

    Go 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.

    amoallaei Friend
    #229481

    I 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,
    Thanks

    orpheus2510 Friend
    #229485

    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.

    bluecafe Friend
    #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 Friend
    #229495

    Argh – of course, you’re right. I was not quite awaken this morning … 🙂

    amoallaei Friend
    #229497

    THanks Thanks ThankSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

    maxamaxa Friend
    #243277

    Quick 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

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 4 voices, and was last updated by  maxamaxa 16 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum