Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • soulroll Friend
    #181738

    Hi, i would like to move the main menu to the right (where currently the “hotline” position is).
    Which css code would i have to edit to do that? Cheers

    Please see screenshot below


    1. webidea
    Stork11 Friend
    #471236

    <em>@soulroll 343853 wrote:</em><blockquote>Hi, i would like to move the main menu to the right (where currently the “hotline” position is).
    Which css code would i have to edit to do that? Cheers

    Please see screenshot below

    </blockquote>
    Hello soulroll,

    Firstly, you should remove “mainnav” block in “Default” layout of “Layouts” tab in “Template Manager”.

    Secondly, replace “hotline” block code in “templatesja_vintasblocksheader.php” file by below code:
    [PHP]
    <div id=”ja-mainnav” style=”width: 720px; float: right;”>
    <div class=”rb-left”> </div>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <!– jdoc:include type=”menu” level=”0″ / –>
    <div class=”rb-right”> </div>

    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php $jamenu->genMenu (1); ?>
    <!– jdoc:include type=”menu” level=”1″ / –>
    </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>
    </div>
    [/PHP]

    Finally, edit “width” of ‘<div id=”ja-mainnav” style=”width: 720px; float: right;”>’ in above code for your site.

    Hope this helps.

    Regards.

    soulroll Friend
    #471288

    Thanks for your quick reply. Not sure what i have done wrong but its not 100% right..the menu doesnt show up now. Have done all steps as you said. Have a look at the php code please if all is ok:

    [PHP]<?php
    /**
    * ————————————————————————
    * JA Vintas Template
    * ————————————————————————
    * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    * @license – Copyrighted Commercial Software
    * Author: J.O.O.M Solutions Co., Ltd
    * Websites: http://www.joomlart.comhttp://www.joomlancers.com
    * This file may not be redistributed in whole or significant part.
    * ————————————————————————
    */

    // No direct access
    defined(‘_JEXEC’) or die;
    ?>
    <?php
    $app = JFactory::getApplication();
    $siteName = $app->getCfg(‘sitename’);
    if ($this->getParam(‘logoType’, ‘image’)==’image’): ?>
    <h1 class=”logo”>
    <a href=”<?php JURI::base(true) ?>” 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=”<?php JURI::base(true) ?>” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a></h1>
    <p class=”site-slogan”><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <?php if ($this->countModules(‘hotline’) || $this->countModules(‘vm-cart’)): ?>
    <div id=”ja-mainnav” style=”width: 720px; float: right;”>
    <div class=”rb-left”> </div>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <!– jdoc:include type=”menu” level=”0″ / –>
    <div class=”rb-right”> </div>

    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id=”ja-subnav” class=”clearfix”>
    <?php $jamenu->genMenu (1); ?>
    <!– jdoc:include type=”menu” level=”1″ / –>
    </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>
    </div>
    <?php endif; ?>

    <?php if ($this->countModules(‘vm-cart’)): ?>
    <div id=”ja-cart”>
    <jdoc:include type=”modules” name=”vm-cart” style=”raw” />
    </div>
    <?php endif; ?>
    [/PHP]

    http://bluefithosting.com.au/greenwichbaths/

    Stork11 Friend
    #471326

    Hello soulroll,

    Can you PM me with your site information (your site URL, your site admin account) and your FTP account? So I can diagnose this problem.

    BTW, please include this forum thread URL in your PM, so I can follow it.

    Regards.

    Stork11 Friend
    #472487

    Hello soulroll,

    You must remove also this “if” line “<?php if ($this->countModules(‘hotline’) || $this->countModules(‘vm-cart’)): ?>” in your “templatesja_vintasblocksheader.php” file.

    I already did this for you. Please check and confirm the same.

    Regards.

    soulroll Friend
    #473117

    Thank you!!!!

    soulroll Friend
    #473127

    One more thing… any chance to get it aligned on the right to the slider, about -20px have tried adding a margin: 0 -20px 0 0 but didnt work

    Stork11 Friend
    #473378

    Hello soulroll,

    I saw that logo was aligned on the left and the menu was aligned on the right of the slideshow module. No problem faced. Please re-check and confirm the same.

    Regards.


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

This topic contains 8 replies, has 2 voices, and was last updated by  Stork11 11 years, 12 months ago.

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