Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • limma Friend

    I am finishing a small site (, and I would like to add a "top bar" above the navbar where putting a custom module with some social icons.
    Is there a way to do it?
    Thanks in advance

    Pankaj Sharma Moderator

    Here is documentation for the layout system that helps you to know about layout and to add new blocks/positions.


    limma Friend


    1. CorporateLayout_Topbar
    2. ModulePositions
    limma Friend

    Thanks you for your reply!

    I have tried to follow the documentation you have linked and I thought it worked well. In the backend of the template I can see my new "topbar" just above the mainmenu and head-search (see first attachment).

    Unfortunately this new block remains under the main menu, as you can see in my second attachment.

    Into the corporate.php I have added`

    <?php $this->loadBlock ('topbar') ?> 

    in this way:

    <div class="t3-wrapper corporate"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->
      <?php $this->loadBlock ('topbar') ?>
      <?php $this->loadBlock('header') ?>
      <?php $this->loadBlock('slideshow') ?>
      <?php $this->loadBlock('spotlight-1') ?>
      <?php $this->loadBlock('mainbody') ?>
      <?php $this->loadBlock('spotlight-2') ?>
      <?php $this->loadBlock('spotlight-3') ?>
      <?php $this->loadBlock('breadcrumb') ?>
      <?php $this->loadBlock('footer') ?>

    I have also added a "topbar.php" file in tpls/blocks:

     * @package   T3 Blank
     * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
     * @license   GNU General Public License version 2 or later; see LICENSE.txt
    defined('_JEXEC') or die;
    <!-- TOPBAR -->
    <nav class="wrap t3-topbar <?php $this->_c('topbar') ?>">
        <div class="container">
            <jdoc:include type="modules" name="<?php $this->_p('topbar') ?>" />
    <!-- //TOPBAR -->

    Where I am wrong? Thanks in advance for your help and for your patience!

    1. CorporateLayout_Topbar-1
    2. ModulePositions-1
    Pankaj Sharma Moderator

    Kindly remove the sticky class for the menu and check.
    See this:
    The menu is sticky so it always on the top and not showing the topbar.

    save and check the site.


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

This topic contains 4 replies, has 2 voices, and was last updated by  Pankaj Sharma 11 months ago.

You must be logged in to reply to this topic.