test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • sharpcrayon Friend
    #161239

    Where is the php file that outputs the main menu?

    My site is http://www.inquisit.us/MSC

    I’d like to take the h1 logo code from the header.php file and move it to the file that outputs the main menu so the two will be in line with one another, but I cannot find the file location for the main menu.

    Thanks for any help!

    S

    Phill Moderator
    #380569

    It is in templates>ja_rave_new>blocks>mainnav.php I have I have created suitable code for you below. Simply replace all the content of the file with the code below.

    <?php
    /*
    # ------------------------------------------------------------------------
    # JA Rave template for Joomla 1.5.x
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
    # @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
    # bound by Proprietary License of JoomlArt. For details on licensing,
    # Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
    # Author: JoomlArt.com
    # Websites: http://www.joomlart.com - http://www.joomlancers.com
    # Redistribution, Modification or Re-licensing of this file in part of full,
    # is bound by the License applied.
    # ------------------------------------------------------------------------
    */
    ?>
    <?php $this->genBlockBegin ($block) ?>
    <?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $siteName : JText::_(trim($this->getParam('logoText')));
    $sloganText = JText::_(trim($this->getParam('sloganText'))); ?>
    <div class="logo-text">
    <h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <?php $this->genBlockEnd ($block) ?>
    <!-- jdoc:include type="menu" level="0" / -->
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id="ja-subnav" class="wrap">
    <div class="main clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    </div>
    <?php endif;?>
    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
    </ul>

    Remember first to copy header.php from the jat3 plugin folder (plugins>system>jat3>base-themes>default>blocks>header.php) into templates>ja_rave_new>blocks>header.php so your changes to that file (removing the logo code) will not be overwritten if you upgrade your plugin.

    Finally, you will want to adjust a little css to make your logo fit as desired but I am sure you can figure that out.

    sharpcrayon Friend
    #380574

    Ah thank you! This works perfectly. I thought it might have something to do with that mainnav.php file in the blocks folder, but I hadn’t been able to get it to work on my own…and thanks for the warning about copying the header.php file over, I wouldn’t have known that!

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

This topic contains 3 replies, has 2 voices, and was last updated by  sharpcrayon 13 years, 9 months ago.

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