Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • jayatunge Friend
    #171313

    How to add some text right to the navigation bar like in the screenshot? Thanks for the help.


    1. callus
    himangi Friend
    #427420

    Hi

    You can place a custom html module having whatever text you want at the place you have shown in the screenshot. Follow the steps below to create a position on the same line as the main menu.

    1. You will need to modify the mainnav.php file in templates/yourtemplate/blocks.
    2. If it is not there, copy it from plugins/system/jat3/jat3/base-themes/default/blocks and paste it at ]templates/yourtemplate/blocks
    3. Introduce a new position say extra1 in the file by placing following code at the end of mainnav.php.
    4. <blockquote><?php if($this->countModules(‘extra1’)) : ?>
      <div id=”extra1″>
      <jdoc:include type=”modules” name=”extra1″ />
      </div>
      <?php endif; ?></blockquote>
      You will need to add styling to place the new div at the same line as main menu, also you will need to reduce the current available width for main menu so that both main menu and your new position will fit in the same line.

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

This topic contains 2 replies, has 2 voices, and was last updated by  himangi 12 years, 6 months ago.

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