Help needed adding text above menu

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Sat Jun 30, 2012 12:50 am
HG.jpg


Hi I am looking for some help on how i may add a line of text or an image above the menu

please see attachment as to where it needs to go

not sure the best way to do this I have increased the margin from the top of the page and the menu so it is where I want the menu to be just now need to fill the gap

thanks in advance
User avatar
Fresh Boarder

GK User
Sat Jun 30, 2012 6:09 am
You can add a module in a search position and override the style by using css override.

Or See below

Find File: templates/gk_corporate2/layouts/blocks/nav.php
Find Lines: 50 to 53 which is below.
Code: Select all
    <?php if($this->getToolsOverride()) : ?>
        <a href="#" id="gkButtonTools"><?php echo JText::_('GK_CORPORATE2_TOOLS') ?></a>
       <?php $this->loadBlock('tools/tools'); ?>
    <?php endif; ?>

Replace with below.
Code: Select all
    <?php if($this->getToolsOverride()) : ?>
        <a href="#" id="gkButtonTools"><?php echo JText::_('GK_CORPORATE2_TOOLS') ?></a>
       <?php $this->loadBlock('tools/tools'); ?>
    <?php endif; ?>
   <div id="gkMenutop">
         <jdoc:include type="modules" name="menutop" style="<?php echo $this->module_styles['xhtml']; ?>" />
   </div>
   <?php endif; ?>


Add below css in to templates/gk_corporate2/css/override.css and enable css override from template settings > advanced settings > css override "on".
You might need to adjust it by using padding or width etc.
Code: Select all
#gkMenutop { float:right;}


Create a new custom_html module and enter your text. In module position enter "menutop" without qoutes, enable it and set its menu assignments to show on all pages for test purposes.

See you around...
User avatar
Platinum Boarder

GK User
Mon Jul 02, 2012 11:05 am
Hi Thanks for your reply but the directory does not have the file nab.php

it maybe an older version of the site that my client is using ?

its version 2
User avatar
Fresh Boarder

GK User
Mon Jul 02, 2012 11:13 am
Hi have just checked the latest ver download of this template for joomla 1.5 and the file nab.php is not there either
User avatar
Fresh Boarder

GK User
Mon Jul 02, 2012 11:20 am
Below was for joomla 2.5 version, I ll post a solution for joomla 1.5 as well sometime today. See you around...
User avatar
Platinum Boarder

GK User
Tue Jul 03, 2012 9:22 am
many thanks look forward to it
User avatar
Fresh Boarder

GK User
Tue Jul 03, 2012 11:50 am
Joomla 1.5 version

Find file: /templates/gk_corporate2/layouts/blocks/toolbar.php
Find below code at top:
Code: Select all
// getting User ID
$userID = $user->get('id');
?>

Replace with below
Code: Select all
// getting User ID
$userID = $user->get('id');
?>

<?php if($this->countModules('menu_top')) : ?>
<div id="gkTopWrap">
<div class="gkMenutop">            
   <jdoc:include type="modules" name="menu_top" style="raw" />      
</div>
</div>
<?php endif; ?>


Find file: /templates/gk_corporate2/css/override.css
Add below css code if you are using toolbar/login/register/search modules.
Code: Select all
#gkTopWrap {height: 10px;margin-top: 10px;position: relative;}
.gkMenutop { float:right;}

Add below If you are not using toolbar/login/register/search modules.
Code: Select all
#gkTopWrap { position:absolute; float:right;top:20px; width:100%;}
.gkMenutop { float:right;}
h1.logo { position: absolute; top:64px;}


Enable css override from template settings > dev mode > css override

Add a new module and publish it in position "menu_top".

You might need to make adjustments to height / padding depending on your logo size.

See you around...
User avatar
Platinum Boarder

GK User
Tue Jul 03, 2012 5:27 pm
Thx all worked a treat perfect
User avatar
Fresh Boarder

GK User
Mon Aug 27, 2012 10:36 am
In the code change for J2.5, is there an extra line of
<?php endif; ?>
MR
User avatar
Fresh Boarder

GK User
Mon Aug 27, 2012 12:35 pm
That is a standard php code regardless of joomla version.

See you around...
User avatar
Platinum Boarder


cron